Try using a strict version of mapAccumLM in ghc.
There has been a TODO about adding a strict version of this for a while in the code.
I will try just replacing the current version with a strict one. Might be a win, might not. But if nothing changes it's probably worth to have one less source of space leaks.