https://github.com/hexirp/doctest-driver-gen
Generate driver file for doctest's cabal integration.
https://github.com/hexirp/doctest-driver-gen
doctest haskell preprocessor
Last synced: 29 days ago
JSON representation
Generate driver file for doctest's cabal integration.
- Host: GitHub
- URL: https://github.com/hexirp/doctest-driver-gen
- Owner: Hexirp
- License: bsd-3-clause
- Created: 2017-09-30T08:31:54.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-10-27T07:59:27.000Z (11 months ago)
- Last Synced: 2025-08-27T09:51:56.141Z (about 1 month ago)
- Topics: doctest, haskell, preprocessor
- Language: Haskell
- Homepage:
- Size: 124 KB
- Stars: 6
- Watchers: 2
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# doctest-driver-gen
[](http://hackage.haskell.org/package/doctest-driver-gen)
[](https://www.stackage.org/lts/package/doctest-driver-gen)
[](https://www.stackage.org/nightly/package/doctest-driver-gen)doctest-driver-gen is a doctest's driver file generator. It lets you automatically generate driver file for [doctest's cabal integration](https://github.com/sol/doctest/blob/f1f6c4149283036a55f9ce7f50439fabf0b9a0ab/README.md#cabal-integration).
Versions of doctest available in this library: `>= 0.7 && < 0.12 || >= 0.13 && < 0.25`
## Usage
```haskell
{-# OPTIONS_GHC -F -pgmF doctest-driver-gen [-optF DOCTEST_OPTION]... #-}
```Make your driver file with the content. There is an example:
```haskell
{-# OPTIONS_GHC -F -pgmF doctest-driver-gen -optF src -optF app #-}
```## Motivation
This package was motivated by [doctest-discover](https://hackage.haskell.org/package/doctest-discover). I want a simpler doctest's driver file generator.