on develop help sign in
Fix GHC < 8.6 build

It turns out we were relying on instances from a transitive dependency on base-orphans. Added that explicitly so that we don't regress on the instances provided with old GHCs.

commit57bdb25142a28f05511a9bd3fd565d01372c8b21 authorJohn Ericson <John.Ericson@Obsidian.Systems> dateSat 12 Dec 2020, 11:36 (6 years ago) parent830add4
2 files changed+7
patch.cabal+3 src/Data/Semigroup/Additive.hs+4
patch.cabal+3
@@ -39,6 +39,9 @@ library
3939 , transformers >= 0.5.6.0 && < 0.6
4040 , witherable >= 0.3 && < 0.4
4141
42+ if impl(ghc < 8.6) -- really, if base < 8.12
43+ build-depends: base-orphans >= 0.8 && < 0.9
44+
4245 exposed-modules: Data.Functor.Misc
4346 , Data.Monoid.DecidablyEmpty
4447 , Data.Patch
src/Data/Semigroup/Additive.hs+4
@@ -14,6 +14,10 @@ module Data.Semigroup.Additive
1414import Data.Functor.Const (Const (..))
1515import Data.Functor.Identity
1616import Data.Proxy
17+#if !MIN_VERSION_base(4,12,0)
18+-- for :*: and :.: semigroup instances
19+import Data.Orphans ()
20+#endif
1721#if !MIN_VERSION_base(4,11,0)
1822import Data.Semigroup (Semigroup (..))
1923#endif