Skip to content

Commit

Permalink
Drop support for GHC < 8.2 (#63)
Browse files Browse the repository at this point in the history
This is motivated by #61 and #62.
  • Loading branch information
sjakobi authored Feb 16, 2022
1 parent ee6e265 commit 96780c0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 19 deletions.
30 changes: 13 additions & 17 deletions .github/workflows/haskell-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
#
# For more information, see https://github.com/haskell-CI/haskell-ci
#
# version: 0.13.20211030
# version: 0.14.1
#
# REGENDATA ("0.13.20211030",["--branches","master","github","checkers.cabal"])
# REGENDATA ("0.14.1",["--branches","master","github","checkers.cabal"])
#
name: Haskell-CI
on:
Expand All @@ -24,6 +24,8 @@ jobs:
linux:
name: Haskell-CI - Linux - ${{ matrix.compiler }}
runs-on: ubuntu-18.04
timeout-minutes:
60
container:
image: buildpack-deps:bionic
continue-on-error: ${{ matrix.allow-failure }}
Expand All @@ -35,10 +37,10 @@ jobs:
compilerVersion: 9.2.1
setup-method: ghcup
allow-failure: false
- compiler: ghc-9.0.1
- compiler: ghc-9.0.2
compilerKind: ghc
compilerVersion: 9.0.1
setup-method: hvr-ppa
compilerVersion: 9.0.2
setup-method: ghcup
allow-failure: false
- compiler: ghc-8.10.7
compilerKind: ghc
Expand All @@ -65,16 +67,6 @@ jobs:
compilerVersion: 8.2.2
setup-method: hvr-ppa
allow-failure: false
- compiler: ghc-8.0.2
compilerKind: ghc
compilerVersion: 8.0.2
setup-method: hvr-ppa
allow-failure: false
- compiler: ghc-7.10.3
compilerKind: ghc
compilerVersion: 7.10.3
setup-method: hvr-ppa
allow-failure: false
fail-fast: false
steps:
- name: apt
Expand Down Expand Up @@ -154,6 +146,10 @@ jobs:
repository hackage.haskell.org
url: http://hackage.haskell.org/
EOF
cat >> $CABAL_CONFIG <<EOF
program-default-options
ghc-options: $GHCJOBS +RTS -M3G -RTS
EOF
cat $CABAL_CONFIG
- name: versions
run: |
Expand Down Expand Up @@ -197,8 +193,8 @@ jobs:
touch cabal.project
touch cabal.project.local
echo "packages: ${PKGDIR_checkers}" >> cabal.project
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo "package checkers" >> cabal.project ; fi
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
echo "package checkers" >> cabal.project
echo " ghc-options: -Werror=missing-methods" >> cabal.project
cat >> cabal.project <<EOF
EOF
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(checkers)$/; }' >> cabal.project.local
Expand Down
4 changes: 2 additions & 2 deletions checkers.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ License: BSD3
License-File: COPYING
Stability: experimental
build-type: Simple
tested-with: GHC==9.2.1, GHC==9.0.1, GHC==8.10.7, GHC==8.8.4, GHC==8.6.5, GHC==8.4.4, GHC==8.2.2, GHC==8.0.2, GHC==7.10.3
tested-with: GHC==9.2.1, GHC==9.0.2, GHC==8.10.7, GHC==8.8.4, GHC==8.6.5, GHC==8.4.4, GHC==8.2.2
homepage: https://github.com/haskell-checkers/checkers

source-repository head
Expand All @@ -27,7 +27,7 @@ source-repository head
Library
hs-Source-Dirs: src
Extensions:
Build-Depends: base >= 4.8 && < 5, random, QuickCheck>=2.3, array >= 0.1, semigroupoids >= 5 && < 6
Build-Depends: base >= 4.10 && < 5, random, QuickCheck>=2.3, array >= 0.1, semigroupoids >= 5 && < 6
if !impl(ghc >= 8.0)
build-depends:
semigroups >= 0.18.2 && < 0.19
Expand Down

0 comments on commit 96780c0

Please sign in to comment.