Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
CABALBUILD := cabal build
CABALRUN := cabal run

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

# default rules

Expand Down Expand Up @@ -157,9 +157,12 @@ doctest: ## Run doctests.
cd cabal-install-solver && $(DOCTEST)
cd cabal-install && $(DOCTEST)

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

# tests

Expand Down
Loading