Generate driver file for doctest's cabal integration

Version on this page:
LTS Haskell 22.30:
Stackage Nightly 2024-07-23:
Latest on Hackage:

See all snapshots doctest-driver-gen appears in

BSD-3-Clause licensed by Hexirp
Maintained by
This version can be pinned in stack with:doctest-driver-gen-,2458

Module documentation for


Hackage version Build Status Stackage LTS Stackage Nightly

doctest-driver-gen is a doctest’s driver file generator. It lets you automatically generate driver file for doctest’s cabal integration.


{-# OPTIONS_GHC -F -pgmF doctest-driver-gen [-optF DOCTEST_OPTION]... #-}

Make your driver file with the content.


This package was motivated by doctest-discover. I want a simpler doctest’s driver file generator.


Changelog for doctest-driver-gen

  • Update build-depends to allow base-

  • Update build-depends to allow doctest-

  • Update build-depends to allow doctest-

  • Update build-depends to allow base-

  • Add ddgen_run.
  • Update ddgen_output to reduce arguments for simplicity.
  • Update build-depends to allow doctest-0.14.

  • Update build-depends to be strict. (Initial)

  • Add a executable program: doctest-driver-gen.
  • Add Test.DocTest.Gen, ddgen, ddgen_output, and ddgen_usage.