on develop help sign in
Fix GHC < 8.6 build
57bdb25John Ericson
patch.cabal+3
@@ -39,6 +39,9 @@ library
39 , transformers >= 0.5.6.0 && < 0.6
39 , transformers >= 0.5.6.0 && < 0.6
40 , witherable >= 0.3 && < 0.4
40 , witherable >= 0.3 && < 0.4
41
41
42+ if impl(ghc < 8.6) -- really, if base < 8.12
43+ build-depends: base-orphans >= 0.8 && < 0.9
44+
42 exposed-modules: Data.Functor.Misc
45 exposed-modules: Data.Functor.Misc
43 , Data.Monoid.DecidablyEmpty
46 , Data.Monoid.DecidablyEmpty
44 , Data.Patch
47 , Data.Patch
src/Data/Semigroup/Additive.hs+4
@@ -14,6 +14,10 @@ module Data.Semigroup.Additive
14import Data.Functor.Const (Const (..))
14import Data.Functor.Const (Const (..))
15import Data.Functor.Identity
15import Data.Functor.Identity
16import Data.Proxy
16import Data.Proxy
17+#if !MIN_VERSION_base(4,12,0)
18+-- for :*: and :.: semigroup instances
19+import Data.Orphans ()
20+#endif
17#if !MIN_VERSION_base(4,11,0)
21#if !MIN_VERSION_base(4,11,0)
18import Data.Semigroup (Semigroup (..))
22import Data.Semigroup (Semigroup (..))
19#endif
23#endif