mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 03:20:21 -07:00
+ Prefer GHC 8.10.7 to 8.10.4, as versions seem to have stabilised now. + Add support for Stackage LTS 19, which ships with GHC 9.0.2. + Since a new version of 9.2 has been released, prefer 9.2.2 over 9.2.1. Also, explicitly pass -XCPP to hlint; see [1]. [1]: https://github.com/ndmitchell/hlint/issues/1360
17 lines
831 B
Diff
17 lines
831 B
Diff
Work around an hlint bug where it does not recognise CPP when
|
|
Haskell2010 is passed to it; see
|
|
|
|
https://github.com/ndmitchell/hlint/issues/1360
|
|
|
|
--- a/.github/workflows/haskell-ci.yml.orig
|
|
+++ b/.github/workflows/haskell-ci.yml
|
|
@@ -247,7 +247,7 @@
|
|
$CABAL v2-test $ARG_COMPILER $ARG_TESTS $ARG_BENCH all --test-show-details=direct
|
|
- name: hlint
|
|
run: |
|
|
- if [ $((HCNUMVER >= 90000 && HCNUMVER < 90200)) -ne 0 ] ; then (cd ${PKGDIR_xmonad_contrib} && hlint -h ${GITHUB_WORKSPACE}/source/.hlint.yaml -XHaskell2010 .) ; fi
|
|
+ if [ $((HCNUMVER >= 90000 && HCNUMVER < 90200)) -ne 0 ] ; then (cd ${PKGDIR_xmonad_contrib} && hlint -h ${GITHUB_WORKSPACE}/source/.hlint.yaml -XHaskell2010 -XCPP .) ; fi
|
|
- name: cabal check
|
|
run: |
|
|
cd ${PKGDIR_xmonad_contrib} || false
|