doctest (hackage): doctest is a tool that checks examples and properties in Haddock comments. It is similar in spirit to the popular Python module with the same name.  Documentation is at https://github.com/sol/doctest#readme.
Keywords: library|mit|program|testing