diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 53f8b5ed..b72cab5b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -63,6 +63,7 @@ jobs: - 9.4.5 # - 9.6.1 - 9.6.2 + - 9.8.1 include: - os: macos-latest ghc: system diff --git a/CHANGES.markdown b/CHANGES.markdown index cdc6c225..39d3886a 100644 --- a/CHANGES.markdown +++ b/CHANGES.markdown @@ -1,3 +1,6 @@ +Changes in 0.22.2 + - GHC 9.8 compatibility + Changes in 0.22.1 - Add `Test.DocTest.Internal.Run.doctestWithRepl` diff --git a/doc/Makefile b/doc/Makefile index b4febeeb..46f840ac 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -2,5 +2,5 @@ all: gh-md-toc inject < README.template.md > ../README.md gh-md-toc: - wget https://raw.githubusercontent.com/ekalinin/github-markdown-toc/0.8.0/gh-md-toc + wget https://raw.githubusercontent.com/ekalinin/github-markdown-toc/656b34011a482544a9ebb4116332c044834bdbbf/gh-md-toc chmod +x $@ diff --git a/doctest.cabal b/doctest.cabal index 63799743..317c6831 100644 --- a/doctest.cabal +++ b/doctest.cabal @@ -1,11 +1,11 @@ cabal-version: 1.12 --- This file has been generated from package.yaml by hpack version 0.35.4. +-- This file has been generated from package.yaml by hpack version 0.36.0. -- -- see: https://github.com/sol/hpack name: doctest -version: 0.22.1 +version: 0.22.2 synopsis: Test interactive Haskell examples description: `doctest` is a tool that checks [examples](https://www.haskell.org/haddock/doc/html/ch03s08.html#idm140354810775744) and [properties](https://www.haskell.org/haddock/doc/html/ch03s08.html#idm140354810771856) @@ -146,12 +146,14 @@ library , directory , exceptions , filepath - , ghc >=8.0 && <9.7 + , ghc >=8.0 && <9.10 , ghc-paths >=0.1.0.9 , process , syb >=0.3 , transformers default-language: Haskell2010 + if impl(ghc >= 9.8) + ghc-options: -fno-warn-x-partial executable doctest main-is: Main.hs @@ -173,12 +175,14 @@ executable doctest , doctest , exceptions , filepath - , ghc >=8.0 && <9.7 + , ghc >=8.0 && <9.10 , ghc-paths >=0.1.0.9 , process , syb >=0.3 , transformers default-language: Haskell2010 + if impl(ghc >= 9.8) + ghc-options: -fno-warn-x-partial test-suite spec main-is: Spec.hs @@ -242,7 +246,7 @@ test-suite spec , directory , exceptions , filepath - , ghc >=8.0 && <9.7 + , ghc >=8.0 && <9.10 , ghc-paths >=0.1.0.9 , hspec >=2.3.0 , hspec-core >=2.3.0 @@ -254,3 +258,5 @@ test-suite spec , syb >=0.3 , transformers default-language: Haskell2010 + if impl(ghc >= 9.8) + ghc-options: -fno-warn-x-partial diff --git a/package.yaml b/package.yaml index d0ca0d16..6cdda8e9 100644 --- a/package.yaml +++ b/package.yaml @@ -1,5 +1,5 @@ name: doctest -version: 0.22.1 +version: 0.22.2 synopsis: Test interactive Haskell examples description: | `doctest` is a tool that checks [examples](https://www.haskell.org/haddock/doc/html/ch03s08.html#idm140354810775744) @@ -32,9 +32,13 @@ extra-source-files: ghc-options: -Wall +when: + - condition: impl(ghc >= 9.8) + ghc-options: -fno-warn-x-partial + dependencies: - base >= 4.5 && < 5 -- ghc >= 8.0 && < 9.7 +- ghc >= 8.0 && < 9.10 - syb >= 0.3 - code-page >= 0.1 - deepseq