Skip to content

Commit eeb092e

Browse files
committed
Don't use experimental cabal-doctest
- Pin doctest-0.24.3
1 parent a503bfb commit eeb092e

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
CABALBUILD := cabal build
66
CABALRUN := cabal run
77

8-
DOCTEST := cabal doctest
8+
DOCTEST := cabal repl --with-compiler=doctest --build-depends=QuickCheck --verbose=0 --repl-options='-w -Wdefault -Wno-inconsistent-flags'
99

1010
# default rules
1111

@@ -162,9 +162,12 @@ doctest: ## Run doctests.
162162
doctest-cli :
163163
doctest -D__DOCTEST__ --fast cabal-install/src cabal-install-solver/src cabal-install-solver/src-assertion
164164

165+
# We don't use the cabal-doctest external command but we install it anyway along
166+
# with doctest.
167+
# SEE: https://github.com/haskell/cabal/issues/11493
165168
.PHONY: doctest-install
166169
doctest-install: ## Install doctest tool needed for running doctests.
167-
cabal install doctest --overwrite-policy=always --ignore-project --flag cabal-doctest
170+
cabal install doctest-0.24.3 --overwrite-policy=always --ignore-project --flag cabal-doctest
168171

169172
# tests
170173

0 commit comments

Comments
 (0)