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.

Edward
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to