on master help sign in
Drop support for GHC 8.6
f75bd25Andrzej Rybczak
.github/workflows/haskell-ci.yml+1−6
@@ -50,11 +50,6 @@ jobs:
50 compilerVersion: 8.8.4
50 compilerVersion: 8.8.4
51 setup-method: hvr-ppa
51 setup-method: hvr-ppa
52 allow-failure: false
52 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
58 fail-fast: false
53 fail-fast: false
59 steps:
54 steps:
60 - name: apt
55 - name: apt
@@ -229,7 +224,7 @@ jobs:
229 - name: doctest
224 - name: doctest
230 run: |
225 run: |
231 if [ $((HCNUMVER < 90000)) -ne 0 ] ; then cd ${PKGDIR_effectful} || false ; fi
226 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
233 - name: cabal check
228 - name: cabal check
234 run: |
229 run: |
235 cd ${PKGDIR_effectful} || false
230 cd ${PKGDIR_effectful} || false
effectful.cabal+2−2
@@ -15,7 +15,7 @@ description: An easy to use, performant extensible effects library with seamless
15extra-source-files: CHANGELOG.md
15extra-source-files: CHANGELOG.md
16 README.md
16 README.md
17
17
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
19
19
20bug-reports: https://github.com/arybczak/effectful/issues
20bug-reports: https://github.com/arybczak/effectful/issues
21source-repository head
21source-repository head
@@ -51,7 +51,7 @@ library
51
51
52 ghc-options: -O2
52 ghc-options: -O2
53
53
54− build-depends: base >= 4.12 && <5
54+ build-depends: base >= 4.13 && <5
55 , async
55 , async
56 , containers
56 , containers
57 , exceptions
57 , exceptions
src/Effectful/Internal/Monad.hs−5
@@ -1,4 +1,3 @@
1−{-# LANGUAGE CPP #-}
2{-# LANGUAGE UndecidableInstances #-}
1{-# LANGUAGE UndecidableInstances #-}
3{-# OPTIONS_GHC -Wno-noncanonical-monad-instances #-}
2{-# OPTIONS_GHC -Wno-noncanonical-monad-instances #-}
4{-# OPTIONS_HADDOCK not-home #-}
3{-# OPTIONS_HADDOCK not-home #-}
@@ -116,10 +115,6 @@ instance Monad (Eff es) where
116 -- https://gitlab.haskell.org/ghc/ghc/-/issues/20008
115 -- https://gitlab.haskell.org/ghc/ghc/-/issues/20008
117 Eff ma >> Eff mb = unsafeEff $ \es -> ma es >> mb es
116 Eff ma >> Eff mb = unsafeEff $ \es -> ma es >> mb es
118
117
119−#if __GLASGOW_HASKELL__ < 808
120− fail = unsafeEff_ . fail
121−#endif
122−
123----------------------------------------
118----------------------------------------
124-- Exception
119-- Exception
125
120