on master help sign in
Drop support for GHC 8.6
commitf75bd252bdd4fac66441f52a968557a4739d4d3b authorAndrzej Rybczak <andrzej@rybczak.net> dateSat 26 Jun 2021, 18:53 (5 years ago) parentb37e40b
3 files changed+3−13
.github/workflows/haskell-ci.yml+1−6 effectful.cabal+2−2 src/Effectful/Internal/Monad.hs−5
.github/workflows/haskell-ci.yml+1−6
@@ -50,11 +50,6 @@ jobs:
5050 compilerVersion: 8.8.4
5151 setup-method: hvr-ppa
5252 allow-failure: false
53− - compiler: ghc-8.6.5
54− compilerKind: ghc
55− compilerVersion: 8.6.5
56− setup-method: hvr-ppa
57− allow-failure: false
5853 fail-fast: false
5954 steps:
6055 - name: apt
@@ -229,7 +224,7 @@ jobs:
229224 - name: doctest
230225 run: |
231226 if [ $((HCNUMVER < 90000)) -ne 0 ] ; then cd ${PKGDIR_effectful} || false ; fi
232− if [ $((HCNUMVER < 90000)) -ne 0 ] ; then doctest -XBangPatterns -XConstraintKinds -XDataKinds -XFlexibleContexts -XFlexibleInstances -XGADTs -XLambdaCase -XMultiParamTypeClasses -XRankNTypes -XRecordWildCards -XRoleAnnotations -XScopedTypeVariables -XStrictData -XTupleSections -XTypeApplications -XTypeFamilies -XTypeOperators src ; fi
227+ if [ $((HCNUMVER < 90000)) -ne 0 ] ; then doctest -XBangPatterns -XConstraintKinds -XDataKinds -XFlexibleContexts -XFlexibleInstances -XGADTs -XGeneralizedNewtypeDeriving -XLambdaCase -XMultiParamTypeClasses -XRankNTypes -XRecordWildCards -XRoleAnnotations -XScopedTypeVariables -XStrictData -XTupleSections -XTypeApplications -XTypeFamilies -XTypeOperators src ; fi
233228 - name: cabal check
234229 run: |
235230 cd ${PKGDIR_effectful} || false
effectful.cabal+2−2
@@ -15,7 +15,7 @@ description: An easy to use, performant extensible effects library with seamless
1515extra-source-files: CHANGELOG.md
1616 README.md
1717
18−tested-with: GHC ==8.6.5 || ==8.8.4 || ==8.10.4 || ==9.0.1 || ==9.2.0.20210422
18+tested-with: GHC ==8.8.4 || ==8.10.4 || ==9.0.1 || ==9.2.0.20210422
1919
2020bug-reports: https://github.com/arybczak/effectful/issues
2121source-repository head
@@ -51,7 +51,7 @@ library
5151
5252 ghc-options: -O2
5353
54− build-depends: base >= 4.12 && <5
54+ build-depends: base >= 4.13 && <5
5555 , async
5656 , containers
5757 , exceptions
src/Effectful/Internal/Monad.hs−5
@@ -1,4 +1,3 @@
1−{-# LANGUAGE CPP #-}
21{-# LANGUAGE UndecidableInstances #-}
32{-# OPTIONS_GHC -Wno-noncanonical-monad-instances #-}
43{-# OPTIONS_HADDOCK not-home #-}
@@ -116,10 +115,6 @@ instance Monad (Eff es) where
116115 -- https://gitlab.haskell.org/ghc/ghc/-/issues/20008
117116 Eff ma >> Eff mb = unsafeEff $ \es -> ma es >> mb es
118117
119−#if __GLASGOW_HASKELL__ < 808
120− fail = unsafeEff_ . fail
121−#endif
122−
123118----------------------------------------
124119-- Exception
125120