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 _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe