@@ -40,6 +40,11 @@ flag fast-weak
4040 default: False
4141 manual: True
4242
43+flag split-these
44+ description: Use split these/semialign packages
45+ manual: False
46+ default: True
47+
4348library
4449 hs-source-dirs: src
4550 build-depends:
@@ -58,21 +63,26 @@ library
5863 monoidal-containers >= 0.4 && < 0.6,
5964 mtl >= 2.1 && < 2.3,
6065 prim-uniq >= 0.1.0.1 && < 0.2,
61− primitive >= 0.5 && < 0.7,
66+ primitive >= 0.5 && < 0.8,
6267 random == 1.1.*,
6368 ref-tf == 0.4.*,
6469 reflection == 2.1.*,
6570 semigroupoids >= 4.0 && < 6,
66− semigroups >= 0.16 && < 0.19,
71+ semigroups >= 0.16 && < 0.20,
6772 stm >= 2.4 && < 2.6,
6873 syb >= 0.5 && < 0.8,
69− these >= 0.4 && < 0.9,
7074 time >= 1.4 && < 1.9,
7175 transformers >= 0.2,
7276 transformers-compat >= 0.3,
7377 unbounded-delays >= 0.1.0.0 && < 0.2,
7478 witherable >= 0.2 && < 0.4
7579
80+ if flag(split-these)
81+ build-depends: these >= 1 && <1.1,
82+ semialign >=1 && <1.1
83+ else
84+ build-depends: these >= 0.4 && <0.9
85+
7686 exposed-modules:
7787 Data.AppendMap,
7888 Data.FastMutableIntMap,
@@ -209,7 +219,8 @@ test-suite hlint
209219 , directory
210220 , filepath
211221 , filemanip
212− , hlint
222+ -- newer versions need ghc-lib-parser, and have failing hints
223+ , hlint <2.1
213224 if impl(ghcjs)
214225 buildable: False
215226
@@ -228,6 +239,10 @@ test-suite EventWriterT
228239 , transformers
229240 , reflex
230241 , ref-tf
242+
243+ if flag(split-these)
244+ build-depends: these-lens
245+
231246 other-modules:
232247 Reflex.Test
233248 Reflex.TestPlan
@@ -235,6 +250,7 @@ test-suite EventWriterT
235250 Reflex.Plan.Pure
236251 Test.Run
237252
253+
238254test-suite RequesterT
239255 type: exitcode-stdio-1.0
240256 main-is: RequesterT.hs
@@ -250,9 +266,14 @@ test-suite RequesterT
250266 , transformers
251267 , reflex
252268 , ref-tf
269+
270+ if flag(split-these)
271+ build-depends: these-lens
272+
253273 other-modules:
254274 Reflex.TestPlan
255275 Reflex.Plan.Pure
276+ Test.Run
256277
257278test-suite QueryT
258279 type: exitcode-stdio-1.0
@@ -271,6 +292,10 @@ test-suite QueryT
271292 , semigroups
272293 , these
273294 , transformers
295+
296+ if flag(split-these)
297+ build-depends: semialign, these-lens
298+
274299 other-modules:
275300 Test.Run
276301 Reflex.TestPlan
@@ -291,6 +316,10 @@ test-suite GC-Semantics
291316 , transformers
292317 , reflex
293318 , ref-tf
319+
320+ if flag(split-these)
321+ build-depends: semialign
322+
294323 if impl(ghc < 8)
295324 build-depends: semigroups
296325 other-modules: