Skip to content

Commit

Permalink
Update for GHC 9.8
Browse files Browse the repository at this point in the history
  • Loading branch information
amesgen authored and mrkkrp committed Oct 15, 2023
1 parent e83769f commit cb8e1c4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 15 deletions.
17 changes: 10 additions & 7 deletions megaparsec-tests/megaparsec-tests.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ library
build-depends:
QuickCheck >=2.10 && <2.15,
base >=4.15 && <5,
bytestring >=0.2 && <0.12,
containers >=0.5 && <0.7,
hspec >=2.0 && <3,
hspec-megaparsec >=2.0 && <3,
bytestring >=0.2 && <0.13,
containers >=0.5 && <0.8,
hspec >=2.0 && <3.0,
hspec-megaparsec >=2.0 && <3.0,
megaparsec ==9.5.0,
mtl >=2.2.2 && <3,
text >=0.2 && <2.2,
Expand Down Expand Up @@ -64,11 +64,11 @@ test-suite tests
build-depends:
QuickCheck >=2.10 && <2.15,
base >=4.15 && <5,
bytestring >=0.2 && <0.12,
bytestring >=0.2 && <0.13,
case-insensitive >=1.2 && <1.3,
containers >=0.5 && <0.7,
containers >=0.5 && <0.8,
hspec >=2.0 && <3,
hspec-megaparsec >=2.0 && <3,
hspec-megaparsec >=2.0 && <3.0,
megaparsec ==9.5.0,
megaparsec-tests,
mtl >=2.2.2 && <3,
Expand All @@ -84,3 +84,6 @@ test-suite tests

else
ghc-options: -O2 -Wall

if impl(ghc >=9.8)
ghc-options: -Wno-x-partial
16 changes: 8 additions & 8 deletions megaparsec.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ library
default-language: Haskell2010
build-depends:
base >=4.15 && <5,
bytestring >=0.2 && <0.12,
bytestring >=0.2 && <0.13,
case-insensitive >=1.2 && <1.3,
containers >=0.5 && <0.7,
containers >=0.5 && <0.8,
deepseq >=1.3 && <1.6,
mtl >=2.2.2 && <3,
parser-combinators >=1.0 && <2,
Expand All @@ -73,8 +73,8 @@ library
else
ghc-options: -O2 -Wall

if (flag(dev) && !impl(ghc ==9.6.2))
ghc-options: -Wredundant-constraints
if impl(ghc >=9.8)
ghc-options: -Wno-x-partial

benchmark bench-speed
type: exitcode-stdio-1.0
Expand All @@ -83,8 +83,8 @@ benchmark bench-speed
default-language: Haskell2010
build-depends:
base >=4.15 && <5,
bytestring >=0.2 && <0.12,
containers >=0.5 && <0.7,
bytestring >=0.2 && <0.13,
containers >=0.5 && <0.8,
criterion >=0.6.2.1 && <1.7,
deepseq >=1.3 && <1.6,
megaparsec,
Expand All @@ -105,8 +105,8 @@ benchmark bench-memory
default-language: Haskell2010
build-depends:
base >=4.15 && <5,
bytestring >=0.2 && <0.12,
containers >=0.5 && <0.7,
bytestring >=0.2 && <0.13,
containers >=0.5 && <0.8,
deepseq >=1.3 && <1.6,
megaparsec,
text >=0.2 && <2.2,
Expand Down

0 comments on commit cb8e1c4

Please sign in to comment.