[Haskell-cafe] "doctest" for haskell -- a good project?

Shaun Cutts shaun at cuttshome.net
Sat Mar 22 02:20:38 EDT 2008


Hello,
 
I am an experienced programmer, currently learning Haskell. Currently I
write many things in python. I use both the "doctest" and "unittest" modules
extensively. As I write code, I simultaneously write doctest code in the doc
strings to explain/set out the "typical narrative" of how the code is used.
Then finishing off a module I write unittests for boundary conditions, more
complex test cases, and generally code that would be annoying to write &
read in doctests.
 
I note that there is a unit testing framework for Haskell, but I don't see
any doctest module. Might this be a good project?
 
If so, suggestions as to resources would be greatly appreciated. I believe I
can't just "introspect" Haskell modules to get at documentation/comments,
like I can in python? (Why not? :)) I notice that there are a few
"documentation generators". Should I try to write an extension of one of
these? Haddock, for instance? Are there any Haddock developers hanging out
on this list, to encourage or dissuade me? :) (And where is the Haddock doc
for Haddock?)
 
In any case, thanks in advance for any comments & advice.
 
- Shaun Cutts
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20080322/185fb821/attachment.htm


More information about the Haskell-Cafe mailing list