An implementation of Python's doctest for Haskell
Browse cluster: Haskell tooling and libraries →Doctest is a tool for testing interactive Haskell examples and properties embedded in Haddock documentation comments. It functions similarly to Python's doctest module, checking whether code examples in comments produce their documented output when executed. The tool is written in Haskell and integrates with the Cabal build system, supporting features like multi-line input and output, QuickCheck properties, and setup code. It is maintained by Simon Hengel and a community of contributors, with installation available through Hackage.