[Haskell-beginners] Writing huge result of `show` to file results in out of memory