HORIZON HASKELLDocslts/ghc-10.0.x8174fa42026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

Moduledoctest-0.25.0.2Haskell2010

Test.DocTest.Internal.Run

  • 3 types
  • 9 values
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.