HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Moduledoctest-0.24.0Haskell2010

Test.DocTest

  • 1 value
  • Packagedoctest-0.24.0
  • Exports1
  • LanguageHaskell2010
  • LicenceMIT
  • SourceRun.hs
valuedoctest :: [String] -> IO ()
#

Run doctest with given list of arguments.

Example:

Example1 expression
doctest ["-iexample/src", "example/src/Example.hs"]...Examples: 2  Tried: 2  Errors: 0  Failures: 0

This can be used to create a Cabal test suite that runs doctest for your project.

If a directory is given, it is traversed to find all .hs and .lhs files inside of it, ignoring hidden entries.