haskell
The doctest program checks examples in source code comments.
It is modeled after doctest for Python
(<http://docs.python.org/library/doctest.html>).
Documentation is at
<https://github.com/sol/doctest-haskell#readme>.
sol/doctest-haskell#readme