[Haskell-cafe] Test command line programs

Edward Z. Yang ezyang at MIT.EDU
Tue Oct 26 12:20:04 EDT 2010

Hello Dupont,

If your code follows good style and has kept as much code out of IO as
possible, you should be able to easily unit test the pure portions of your
code.  Otherwise, classic integration tests, by setting up the network jigs
yourself, is standard.

> Another little question:
> How can I access the name of a function inside a function (for Trace
> purpose)?
> I have to use the CPP preprocessor?

I think most people usually explicitly write in their function name.
CPP can also work for this purpose.


More information about the Haskell-Cafe mailing list