Skip to content

Commit

Permalink
Add (experimental) cabal-doctest executable
Browse files Browse the repository at this point in the history
  • Loading branch information
sol committed Jul 14, 2024
1 parent fd9d71a commit 090d0e1
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGES.markdown
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Changes in 0.22.5
- Add (experimental) `cabal-doctest` executable. This is guarded behind a
flag for now, use `cabal install doctest -f -cabal-doctest` to install it.

Changes in 0.22.4
- Use `-Wno-unused-packages` for GHC `8.10` / `9.0` / `9.2`

Expand Down
11 changes: 10 additions & 1 deletion doctest.cabal

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 13 additions & 1 deletion package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: doctest
version: 0.22.4
version: 0.22.5
synopsis: Test interactive Haskell examples
description: |
`doctest` is a tool that checks [examples](https://www.haskell.org/haddock/doc/html/ch03s08.html#idm140354810775744)
Expand Down Expand Up @@ -64,6 +64,12 @@ library:
ghc-paths: ">= 0.1.0.9"
transformers:

flags:
cabal-doctest:
description: Install (experimental) cabal-doctest executable
manual: true
default: false

executables:
doctest:
main: driver/doctest.hs
Expand All @@ -78,6 +84,12 @@ executables:
- process
- filepath
- temporary
when:
condition: flag(cabal-doctest)
then:
buildable: true
else:
buildable: false

tests:
spec:
Expand Down

0 comments on commit 090d0e1

Please sign in to comment.