Fixing 17 space leaks in GHCi, and keeping them fixed June 20, 2018In this post I want to tackle a couple of problems that have irritated me from time to time when working with Haskell. GHC provides some powerful tools for debugging space leaks, but sometimes they’re not enough. The heap profiler shows you what’s in the heap, but it doesn’t provide detailed visibility into the chain of references that cause a particular data structure to be retained. Retainer profiling was supposed to h...