Skip to content

Commit fb965dd

Browse files
quasicomputationalandrewthad
authored andcommitted
Only depend on semigroups on old GHCs.
The conditional was already there for `fail`. It makes sense to only incur the dependency on compatibility packages when needed, so let's add `semigroups` to the conditional set, instead of depending on it unconditionally.
1 parent 4188fec commit fb965dd

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525

2626
Provide a MonadFail instance for Stream.
2727

28+
Only depend on `semigroups` on old GHCs.
29+
2830
- 0.2.1.0
2931

3032
Adding `Semigroup` instances for GHC 8.4.

streaming.cabal

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,14 +208,15 @@ library
208208
base >=4.8 && <5
209209
, mtl >=2.1 && <2.3
210210
, mmorph >=1.0 && <1.2
211-
, semigroups >= 0.18 && <0.19
212211
, transformers >=0.4 && <0.6
213212
, transformers-base < 0.5
214213
, ghc-prim
215214
, containers
216215

217216
if !impl(ghc >= 8.0)
218-
build-depends: fail == 4.9.*
217+
build-depends:
218+
fail == 4.9.*
219+
, semigroups >= 0.18 && <0.19
219220

220221
hs-source-dirs:
221222
src

0 commit comments

Comments
 (0)