Test that a Haskell function has a space leak

Viewed 218

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?

1 Answers
Related