Skip to content

Commit 6b6ec16

Browse files
committed
ci: Test with older GHC versions
This should give us a warning that we need to bump the base lower bounds if we ever break old GHCs again. Related: #80
1 parent 2234b1f commit 6b6ec16

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ jobs:
4646
allow-failure: false
4747
- compiler: ghc-8.4.4
4848
allow-failure: false
49+
- compiler: ghc-8.2.2
50+
allow-failure: false
51+
- compiler: ghc-8.0.2
52+
allow-failure: false
53+
- compiler: ghc-7.10.3
54+
allow-failure: false
4955
fail-fast: false
5056
steps:
5157
- name: apt
@@ -146,8 +152,8 @@ jobs:
146152
touch cabal.project
147153
touch cabal.project.local
148154
echo "packages: ${PKGDIR_X11}" >> cabal.project
149-
echo "package X11" >> cabal.project
150-
echo " ghc-options: -Werror=missing-methods" >> cabal.project
155+
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo "package X11" >> cabal.project ; fi
156+
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
151157
cat >> cabal.project <<EOF
152158
package X11
153159
flags: +pedantic

X11.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ license-file: LICENSE
1010
copyright: Alastair Reid, 1999-2003, libraries@haskell.org 2003-2007,
1111
Don Stewart 2007-2009, Spencer Janssen 2007-2009, Daniel Wagner 2009-2011.
1212
maintainer: Daniel Wagner <daniel@wagner-home.com>
13-
tested-with: GHC == 8.4.4 || == 8.6.5 || == 8.8.4 || == 8.10.4 || == 9.0.1
13+
tested-with: GHC == 7.10.3 || == 8.0.2 || == 8.2.2 || == 8.4.4 || == 8.6.5 || == 8.8.4 || == 8.10.4 || == 9.0.1
1414
category: Graphics
1515
homepage: https://github.com/xmonad/X11
1616
bug-reports: https://github.com/xmonad/X11/issues

0 commit comments

Comments
 (0)