disable doctests conditionally

This commit is contained in:
2026-08-24 05:06:01 -06:00
parent c9eb8f6f85
commit 99d9e460fc
7 changed files with 39 additions and 54 deletions
+16 -8
View File
@@ -13,6 +13,11 @@ build-type: Simple
-- extra-doc-files: CHANGELOG.md
-- extra-source-files:
flag doctest
description: enable the doctest suite
default: True
manual: True
common ghcstuffs-dev
ghc-options:
-Wno-unused-matches -Wno-missing-signatures -Wno-typed-holes
@@ -156,11 +161,14 @@ test-suite test
default-language: GHC2024
-- https://github.com/martijnbastiaan/doctest-parallel/pull/66
-- test-suite doctest
-- import: ghcstuffs, ghcstuffs-dev
-- type: exitcode-stdio-1.0
-- hs-source-dirs: test
-- main-is: doctest.hs
-- build-depends:
-- , base
-- , doctest-parallel >=0.1
test-suite doctest
import: ghcstuffs, ghcstuffs-dev
type: exitcode-stdio-1.0
hs-source-dirs: test
build-depends: base
default-extensions: CPP
main-is: doctest.hs
if flag(doctest)
build-depends: doctest-parallel >=0.1
else
cpp-options: "-DGYEHOEK_NO_DOCTEST"