doctest: Test interactive Haskell examples

Install via `cabal install doctest`.        [rating:2.5/3(n=8)]