Memory optimization
The peak memory usage for this program reaches 3GB. The VPS where I currently run it has 4GB so it's getting a bit awkward. There might be room to optimize the Haskell implementation but it might need to be rewritten in some other language instead.
Unless I replace the whole related algorithm with something else.