
26 Aug
2007
26 Aug
'07
9:16 a.m.
On Sun, Aug 26, 2007 at 01:20:52AM -0700, Alex Jacobson wrote:
I'd like to have code not compile if it doesn't pass the tests.
Is there a way to use TH to generate compiler errors if the tests don't pass?
This should do it, in a different module to that which defines runtests: $( case runtests of Success -> return [] Failure -> error "Tests failed" ) Thanks Ian