on develop help sign in
Honestly get instances from `Data.Orphans`

Do this instead of sneakily getting them via monoidal-map.

commit885a894bf370fdeda7ccf44d03c3f7b8b546c776 authorJohn Ericson <John.Ericson@Obsidian.Systems> dateWed 13 Oct 2021, 20:44 (5 years ago) parent9cb3030
2 files changed+7−2
patch.cabal+3 src/Data/Semigroup/Additive.hs+4−2
patch.cabal+3
@@ -43,6 +43,9 @@ library
4343 , transformers >= 0.5.6.0 && < 0.6
4444 , witherable >= 0.3 && < 0.4
4545
46+ if impl(ghc < 8.6) -- really, if base < 8.12
47+ build-depends: base-orphans >= 0.8 && < 0.9
48+
4649 exposed-modules: Data.Functor.Misc
4750 , Data.Monoid.DecidablyEmpty
4851 , Data.Patch
src/Data/Semigroup/Additive.hs+4−2
@@ -13,9 +13,11 @@ module Data.Semigroup.Additive
1313
1414import Data.Functor.Const (Const (..))
1515import Data.Functor.Identity
16−-- For base-orphans, TODO don't cheat.
17−import Data.Map.Monoidal ()
1816import Data.Proxy
17+#if !MIN_VERSION_base(4,12,0)
18+-- for :*: and :.: semigroup instances
19+import Data.Orphans ()
20+#endif
1921#if !MIN_VERSION_base(4,11,0)
2022import Data.Semigroup (Semigroup (..))
2123#endif