Skip to content

Commit e9bcba6

Browse files
committedJan 9, 2020
Add back split-these from Reflex to support older GHCs
1 parent 64cff76 commit e9bcba6

File tree

3 files changed

+24
-3
lines changed

3 files changed

+24
-3
lines changed
 

‎ChangeLog.md

+4
Original file line numberDiff line numberDiff line change
@@ -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
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,10 @@ installed: -all
55

66
-- https://github.com/haskell/cabal/issues/6106
77
install-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
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,19 @@ 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+
2631
library
2732
hs-source-dirs: src
2833
build-depends: base >= 4.9 && < 4.14
2934
, constraints-extras >= 0.3 && < 0.4
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+
5161
test-suite hlint
5262
type: exitcode-stdio-1.0
5363
main-is: hlint.hs

0 commit comments

Comments
 (0)
Please sign in to comment.