File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Unreleased
4
4
5
+ * New dep of ` data-orphans ` for old GHC to get instances honestly instead of
6
+ via ` monoidal-containers ` .
7
+
8
+ ## Unreleased
9
+
5
10
* ` Additive ` now lives in ` Data.Semigroup.Additive ` , but is still reexported
6
11
from ` Data.Patch ` for compatability.
7
12
Original file line number Diff line number Diff line change @@ -43,6 +43,9 @@ library
43
43
, transformers >= 0.5.6.0 && < 0.6
44
44
, witherable >= 0.3 && < 0.5
45
45
46
+ if impl(ghc < 8.6 ) -- really, if base < 8.12
47
+ build-depends : base-orphans >= 0.8 && < 0.9
48
+
46
49
exposed-modules : Data.Functor.Misc
47
50
, Data.Monoid.DecidablyEmpty
48
51
, Data.Patch
Original file line number Diff line number Diff line change @@ -13,9 +13,11 @@ module Data.Semigroup.Additive
13
13
14
14
import Data.Functor.Const (Const (.. ))
15
15
import Data.Functor.Identity
16
- -- For base-orphans, TODO don't cheat.
17
- import Data.Map.Monoidal ()
18
16
import Data.Proxy
17
+ #if !MIN_VERSION_base(4,12,0)
18
+ -- for :*: and :.: semigroup instances
19
+ import Data.Orphans ()
20
+ #endif
19
21
#if !MIN_VERSION_base(4,11,0)
20
22
import Data.Semigroup (Semigroup (.. ))
21
23
#endif
You can’t perform that action at this time.
0 commit comments