Skip to content

Commit e8b91a0

Browse files
committed
Tests with more recent GHC versions
1 parent f0a9f39 commit e8b91a0

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,21 @@ jobs:
2828
strategy:
2929
matrix:
3030
include:
31+
- compiler: ghc-9.12.2
32+
compilerKind: ghc
33+
compilerVersion: 9.12.2
34+
setup-method: ghcup
35+
allow-failure: false
36+
- compiler: ghc-9.10.1
37+
compilerKind: ghc
38+
compilerVersion: 9.10.1
39+
setup-method: ghcup
40+
allow-failure: false
41+
- compiler: ghc-9.8.4
42+
compilerKind: ghc
43+
compilerVersion: 9.8.4
44+
setup-method: ghcup
45+
allow-failure: false
3146
- compiler: ghc-9.6.1
3247
compilerKind: ghc
3348
compilerVersion: 9.6.1

optparse-applicative.cabal

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ extra-source-files: CHANGELOG.md
5151
homepage: https://github.com/pcapriotti/optparse-applicative
5252
bug-reports: https://github.com/pcapriotti/optparse-applicative/issues
5353
tested-with:
54+
GHC==9.12.2
55+
GHC==9.10.1
56+
GHC==9.8.4
5457
GHC==9.6.1
5558
GHC==9.4.4
5659
GHC==9.2.7

src/Options/Applicative/Common.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,9 @@ searchArg prefs arg =
182182

183183
ArgReader rdr ->
184184
fmap pure . lift . lift $ runReadM (crReader rdr) arg
185-
_ -> mzero
185+
186+
_ ->
187+
mzero
186188

187189
where
188190
cmdMatches cs

0 commit comments

Comments
 (0)