on develop help sign in
Add back split-these from Reflex to support older GHCs
commite9bcba61b8c9b14b7d4565581f16062b9cd7f66a authorJohn Ericson <John.Ericson@Obsidian.Systems> dateThu 9 Jan 2020, 14:00 (7 years ago) parent64cff76
3 files changed+24−3
ChangeLog.md+4 cabal.haskell-ci+7 patch.cabal+13−3
ChangeLog.md+4
@@ -1,5 +1,9 @@
11# Revision history for patch
22
3+## Unreleased
4+
5+* Support older GHCs with `split-these` flag.
6+
37## 0.0.0.1
48
59* Remove unneeded dependencies
cabal.haskell-ci+7
@@ -5,3 +5,10 @@ installed: -all
55
66-- https://github.com/haskell/cabal/issues/6106
77install-dependencies: False
8+
9+constraint-set old-these
10+ ghc: <8.8
11+ constraints: these <1
12+
13+constraint-set old-witherable
14+ constraints: witherable <0.3.2
patch.cabal+13−3
@@ -23,6 +23,11 @@ tested-with:
2323 GHC ==8.0.2 || ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.1
2424 GHCJS ==8.4
2525
26+flag split-these
27+ description: Use split these/semialign packages
28+ manual: False
29+ default: True
30+
2631library
2732 hs-source-dirs: src
2833 build-depends: base >= 4.9 && < 4.14
@@ -30,10 +35,7 @@ library
3035 , containers >= 0.6 && < 0.7
3136 , dependent-map >= 0.3 && < 0.4
3237 , dependent-sum >= 0.6 && < 0.7
33− , monoidal-containers >= 0.6 && < 0.7
34− , semialign >=1 && <1.2
3538 , semigroupoids >= 4.0 && < 6
36− , these >= 1 && <1.1
3739 , transformers >= 0.5.6.0 && < 0.6
3840 , witherable >= 0.3 && < 0.3.2
3941
@@ -48,6 +50,14 @@ library
4850
4951 ghc-options: -Wall -fwarn-redundant-constraints -fwarn-tabs
5052
53+ if flag(split-these)
54+ build-depends: these >= 1 && <1.1
55+ , semialign >=1 && <1.2
56+ , monoidal-containers >= 0.6 && < 0.7
57+ else
58+ build-depends: these >= 0.4 && <0.9
59+ , monoidal-containers == 0.4.0.0
60+
5161test-suite hlint
5262 type: exitcode-stdio-1.0
5363 main-is: hlint.hs