I'm writing a collection of example space leaks in Haskell, and would like to write a test suite to catch myself in case I insert any examples that don't actually leak space.
Is there way to test the examples without making a separate executable for each one?