Assertions in Hugs
Alastair Reid
reid@cs.utah.edu
Mon, 12 Feb 2001 10:13:22 -0700
> I'm looking for a way to assert certain facts in Haskell modules. Is there
> a way to do this in Hugs? This would be a very nice feature; preferably
> with a command line switch to control whether assertions are actually run
> or not.
This doesn't quite answer your question but...
I strongly recommend looking at quickcheck
http://www.cs.chalmers.se/~rjmh/QuickCheck/
which provides a lot of help in building good test-suites.
If you want conditional compilation, you might also check out
the -F <filter-program> feature in Hugs which lets you specify
a preprocessor (such as cpp or perl) to use with your Haskell code.
--
Alastair Reid