Skip to content

Commit

Permalink
Merge pull request #72 from pgujjula/allow-ghc-9.8
Browse files Browse the repository at this point in the history
Allow ghc 9.8
  • Loading branch information
edsko authored May 18, 2024
2 parents 7c12a92 + bf272ef commit e1b5115
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 16 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/haskell-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,19 @@ jobs:
strategy:
matrix:
include:
- compiler: ghc-9.6.3
- compiler: ghc-9.8.2
compilerKind: ghc
compilerVersion: 9.6.3
compilerVersion: 9.8.2
setup-method: ghcup
allow-failure: false
- compiler: ghc-9.4.7
- compiler: ghc-9.6.5
compilerKind: ghc
compilerVersion: 9.4.7
compilerVersion: 9.6.5
setup-method: ghcup
allow-failure: false
- compiler: ghc-9.4.8
compilerKind: ghc
compilerVersion: 9.4.8
setup-method: ghcup
allow-failure: false
- compiler: ghc-9.2.8
Expand All @@ -60,10 +65,10 @@ jobs:
apt-get update
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
mkdir -p "$HOME/.ghcup/bin"
curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
curl -sL https://downloads.haskell.org/ghcup/0.1.22.0/x86_64-linux-ghcup-0.1.22.0 > "$HOME/.ghcup/bin/ghcup"
chmod a+x "$HOME/.ghcup/bin/ghcup"
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.3.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
env:
HCKIND: ${{ matrix.compilerKind }}
HCNAME: ${{ matrix.compiler }}
Expand All @@ -81,7 +86,7 @@ jobs:
echo "HC=$HC" >> "$GITHUB_ENV"
echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.3.0 -vnormal+nowrap" >> "$GITHUB_ENV"
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
Expand Down
2 changes: 1 addition & 1 deletion cabal.haskell-ci
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ ghcup-cabal: True
ghcup-jobs: >8.10.4 && <9 || >9.0.1

-- ghcup version
ghcup-version: 0.1.19.5
ghcup-version: 0.1.22.0

-- Additional apt packages to install
apt:
Expand Down
5 changes: 3 additions & 2 deletions demo/demo.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ build-type: Simple
tested-with: GHC==8.10.7
, GHC==9.0.2
, GHC==9.2.8
, GHC==9.4.7
, GHC==9.6.3
, GHC==9.4.8
, GHC==9.6.5
, GHC==9.8.2

common lang
ghc-options:
Expand Down
13 changes: 7 additions & 6 deletions lib/falsify.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ extra-doc-files: CHANGELOG.md
tested-with: GHC==8.10.7
, GHC==9.0.2
, GHC==9.2.8
, GHC==9.4.7
, GHC==9.6.3
, GHC==9.4.8
, GHC==9.6.5
, GHC==9.8.2

source-repository head
type: git
Expand All @@ -41,7 +42,7 @@ common lang
-Wredundant-constraints
-Widentities
build-depends:
base >= 4.12 && < 4.19
base >= 4.12 && < 4.20
default-language:
Haskell2010
default-extensions:
Expand Down Expand Up @@ -118,7 +119,7 @@ library
build-depends:
, base16-bytestring >= 1.0 && < 1.1
, binary >= 0.8 && < 0.9
, bytestring >= 0.10 && < 0.12
, bytestring >= 0.10 && < 0.13
, containers >= 0.6 && < 0.7
, data-default >= 0.7 && < 0.8
, mtl >= 2.2 && < 2.4
Expand All @@ -128,7 +129,7 @@ library
, sop-core >= 0.5 && < 0.6
, splitmix >= 0.1 && < 0.2
, tagged >= 0.8 && < 0.9
, tasty >= 1.3 && < 1.5
, tasty >= 1.3 && < 1.6
, transformers >= 0.5 && < 0.7
, vector >= 0.12 && < 0.14
other-extensions:
Expand Down Expand Up @@ -159,7 +160,7 @@ test-suite test-falsify
TestSuite.Util.List
TestSuite.Util.Tree
build-depends:
, QuickCheck >= 2.14 && < 2.15
, QuickCheck >= 2.14 && < 2.16
, tasty-hunit >= 0.10 && < 0.11

-- Inherit bounds from the main library
Expand Down

0 comments on commit e1b5115

Please sign in to comment.