git.iko.soy/typeable/control-has
on master help sign in
Fix compilation on GHC 8.2-8.6 due to MonadFail
8dc5474mniip
control-has.cabal+39−34
unifiedsplit
@@ -1,36 +1,41 @@
1−cabal-version: 2.4
1+cabal-version: 2.4
2−name: control-has
2+name: control-has
3−version: 0.2.0.0
3+version: 0.2.0.0
4−synopsis: Typeclass for things that have parts
4+synopsis: Typeclass for things that have parts
5−license-file: LICENSE
5+license-file: LICENSE
6−build-type: Simple
6+build-type: Simple
7
7
8library
8library
9− hs-source-dirs: src
9+ hs-source-dirs: src
10− ghc-options: -Wall
10+ ghc-options: -Wall
11− exposed-modules: Control.Has
11+ exposed-modules:
12− Control.EnvT
12+ Control.EnvT
13+ Control.Has
14+
13− build-depends: base
15+ build-depends:
16+ , base >=4.10
14− , exceptions
17+ , exceptions
15− , lens
18+ , lens
16− , monad-control
19+ , monad-control
17− , mtl
20+ , mtl
18− , resourcet
21+ , resourcet
19− , transformers-base
22+ , transformers-base
23+
20− default-language: Haskell2010
24+ default-language: Haskell2010
21− default-extensions: ConstraintKinds
25+ default-extensions:
26+ ConstraintKinds
22− , DataKinds
27+ DataKinds
23− , DefaultSignatures
28+ DefaultSignatures
24− , DerivingStrategies
29+ DerivingStrategies
25− , FlexibleContexts
30+ FlexibleContexts
26− , FlexibleInstances
31+ FlexibleInstances
27− , FunctionalDependencies
32+ FunctionalDependencies
28− , GADTs
33+ GADTs
29− , GeneralizedNewtypeDeriving
34+ GeneralizedNewtypeDeriving
30− , KindSignatures
35+ KindSignatures
31− , RankNTypes
36+ RankNTypes
32− , StandaloneDeriving
37+ StandaloneDeriving
38+ TypeFamilies
33− , TypeOperators
39+ TypeOperators
34− , TypeFamilies
35− , UndecidableInstances
40+ UndecidableInstances
36− , UndecidableSuperClasses
41+ UndecidableSuperClasses
src/Control/EnvT.hs+4
@@ -24,6 +24,10 @@ import Control.Monad
24import Control.Monad.Fix
24import Control.Monad.Fix
25#endif
25#endif
26
26
27+#if !MIN_VERSION_base(4,13,0)
28+import Control.Monad.Fail
29+#endif
30+
27-- | The only reason this exists is that there are a lot of instances for
31-- | The only reason this exists is that there are a lot of instances for
28-- 'EnvT, which simply pass the implementation to the inner 'm'
32-- 'EnvT, which simply pass the implementation to the inner 'm'
29-- such as 'MonadLogger'.
33-- such as 'MonadLogger'.