As part of their Haskell Ecosystem Support Package, QBayLogic asked us to investigate
a space leak in one of their Haskell applications, a simulation of a circuit using Clash.
The starting point was a link to a ticket in the bittide-hardware package with reproduction instructions.
This post explains the debugging process which led to the resolution of this ticket. At the start of the investigation the program used 2 GB memory, at the end, about 200 MB, an improvement of approximately 10x!