File tree Expand file tree Collapse file tree 2 files changed +31
-8
lines changed Expand file tree Collapse file tree 2 files changed +31
-8
lines changed Original file line number Diff line number Diff line change @@ -231,6 +231,7 @@ jobs:
231
231
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo "package regex-tdfa" >> cabal.project ; fi
232
232
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
233
233
cat >> cabal.project <<EOF
234
+ allow-newer: bytestring
234
235
EOF
235
236
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(Cabal|regex-tdfa|text)$/; }' >> cabal.project.local
236
237
cat cabal.project
@@ -272,10 +273,10 @@ jobs:
272
273
- name : prepare for constraint sets
273
274
run : |
274
275
rm -f cabal.project.local
275
- - name : constraint set mtl-2.3
276
+ - name : constraint set bytestring-0.12
276
277
run : |
277
- if [ $((HCNUMVER >= 80600 )) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='mtl >= 2.3' --constraint='transformers >= 0.6 ' --dependencies-only -j2 all ; fi
278
- if [ $((HCNUMVER >= 80600 )) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='mtl >= 2.3' --constraint='transformers >= 0.6 ' all ; fi
278
+ if [ $((HCNUMVER >= 80000 )) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='bytestring >= 0.12 ' --dependencies-only -j2 all ; fi
279
+ if [ $((HCNUMVER >= 80000 )) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='bytestring >= 0.12 ' all ; fi
279
280
- name : save cache
280
281
uses : actions/cache/save@v3
281
282
if : always()
Original file line number Diff line number Diff line change @@ -2,9 +2,31 @@ branches: master
2
2
3
3
installed: +all -text -Cabal
4
4
5
- constraint-set mtl-2.3
6
- ghc: >= 8.6
7
- constraints: mtl >= 2.3, transformers >= 0.6
8
-
9
5
-- doctest-parallel requires base >= 4.10
10
- tests: >= 8.2
6
+ tests: >= 8.2
7
+
8
+ constraint-set bytestring-0.12
9
+ -- bytestring-0.12 requires base >=4.9 (GHC 8.0)
10
+ ghc: >= 8.0
11
+ constraints: bytestring >= 0.12
12
+ --
13
+ -- The following is silently ignored here:
14
+ --
15
+ -- raw-project
16
+ -- allow-newer: bytestring
17
+ --
18
+ -- Cannot build tests with newer bytestring because doctest-parallel relies on non-upgradeable ghc library
19
+ --
20
+ -- tests: True
21
+ -- run-tests: True
22
+
23
+ -- The following is meant to be for constraint-set bytestring-0.12 only,
24
+ -- but there is currently no way to enable `allow-newer: bytestring`
25
+ -- just for the constraint set.
26
+ --
27
+ -- Since core library `bytestring` is constrained to `installed`,
28
+ -- it is not harmful to allow newer `bytestring` in the default runs
29
+ -- as well---it will have no effect there.
30
+ --
31
+ raw-project
32
+ allow-newer: bytestring
You can’t perform that action at this time.
0 commit comments