This is a work in progress library for interfacing test-framework with doctest.
As the doctest version in hackage does not yet provide a library api you will need to:
git clone git://github.com/sakari/doctest-haskell.git
git checkout sakari/doctest-lib
And then configure, build, test and install with cabal as normal.
See the generated Haddock docs for a usage example.