It's been 3 years since my last attempt to use Haskell. I've ported a script from Python, I wonder if anyone might point out areas that I'm not doing things idiomatically for Haskell? I'm hoping to start using Haskell more in place of Go and Python.

The Haskell script: http://pastebin.com/SxH3PXgG

The original Python script if you're curious: http://pastebin.com/bqUVxB5d