
5 Jan
2004
5 Jan
'04
3:01 a.m.
Jeff Newbern
Thanks for your input. I am mainly interested in this functionality to enhance my unit tests. I want to be able to run test cases with limits on time, heap, stack, etc. and fail the test if it exceeds the limits.
Well, if you can isolate the tests well enough (i.e. not run too many other parts of your program), you could possibly get by with GHC's options for limiting resources (for the whole program)? In particular the +RTS -K and -M options would be useful, see http://www.haskell.org/ghc/docs/6.2/html/users_guide/runtime-control.html#RT... for details. -kzm -- If I haven't seen further, it is by standing in the footprints of giants