Your Haskell Service Is Leaking Memory, and the Fix Is One Bang Away
Long-running Haskell services leak memory through lazy thunks in accumulators. Here's how BangPatterns, strict fields, and StrictData fix it — plus the WHNF trap and how to verify the fix with +RTS -s.