[Haskell-beginners] Cannot find cause of space leak