← All repos

doctest

An implementation of Python's doctest for Haskell

Browse cluster: Haskell tooling and libraries
740commits
44contributors
3languages

Tech stack & purpose

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.

Community & reference links

Languages

Haskell
99.7%
Shell
0.3%
C
0.0%

Contributors (top 30 of 44)