There's the "doctest" package: http://hackage.haskell.org/package/doctest, which looks pretty good and has a number of users (35 direct reverse deps).

It has support for cabal test integration, although I would like to see better integration with other test tools.  But that can be added in the test executable I suppose.

My only quibble with this suggestion is that asking beginners to do this sort of work may do more harm than good.  It would certainly be helpful, but I don't think most people would find it interesting.



On Tue, Mar 12, 2013 at 3:19 PM, Edward Z. Yang <ezyang@mit.edu> wrote:
I also support this suggestion.  Although, do we have the build infrastructure
for this?!

Edward

Excerpts from Michael Orlitzky's message of Mon Mar 11 19:52:12 -0700 2013:
> On 03/11/2013 11:48 AM, Brent Yorgey wrote:
> >
> > So I'd like to do it again this time around, and am looking for
> > particular projects I can suggest to them.  Do you have an open-source
> > project with a few well-specified tasks that a relative beginner (see
> > below) could reasonably make a contribution towards in the space of
> > about four weeks? I'm aware that most tasks don't fit that profile,
> > but even complex projects usually have a few "simple-ish" tasks that
> > haven't yet been done just because "no one has gotten around to it
> > yet".
>
> It's not exciting, but adding doctest suites with examples to existing
> packages would be a great help.
>
>   * Good return on investment.
>
>   * Not too hard.
>
>   * The project is complete when you stop typing.
>

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