File tree Expand file tree Collapse file tree 3 files changed +40
-4
lines changed Expand file tree Collapse file tree 3 files changed +40
-4
lines changed Original file line number Diff line number Diff line change 14
14
#
15
15
name : Haskell-CI
16
16
on :
17
- - push
18
- - pull_request
17
+ push :
18
+ branches :
19
+ - master
20
+ pull_request :
21
+ branches :
22
+ - master
19
23
jobs :
20
24
linux :
21
25
name : Haskell-CI - Linux - ${{ matrix.compiler }}
@@ -227,6 +231,7 @@ jobs:
227
231
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo "package attoparsec" >> cabal.project ; fi
228
232
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
229
233
cat >> cabal.project <<EOF
234
+ allow-newer: bytestring
230
235
EOF
231
236
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(attoparsec)$/; }' >> cabal.project.local
232
237
cat cabal.project
@@ -268,6 +273,11 @@ jobs:
268
273
- name : prepare for constraint sets
269
274
run : |
270
275
rm -f cabal.project.local
276
+ - name : constraint set bytestring-0.12
277
+ run : |
278
+ if [ $((HCNUMVER >= 80000)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='bytestring >= 0.12' --dependencies-only -j2 all ; fi
279
+ if [ $((HCNUMVER >= 80000)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='bytestring >= 0.12' all ; fi
280
+ if [ $((HCNUMVER >= 80000)) -ne 0 ] ; then $CABAL v2-test $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='bytestring >= 0.12' all ; fi
271
281
- name : constraint set text-2
272
282
run : |
273
283
if [ $((HCNUMVER >= 80400 && HCNUMVER < 90400)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='text >= 2' --dependencies-only -j2 all ; fi
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ library attoparsec-internal
57
57
hs-source-dirs : internal
58
58
build-depends : array,
59
59
base >= 4.3 && < 5 ,
60
- bytestring < 0.12 ,
60
+ bytestring < 0.13 ,
61
61
text >= 1.1.1.3
62
62
if !impl(ghc >= 8.0 )
63
63
build-depends : semigroups >= 0.16.1 && < 0.21
@@ -73,7 +73,7 @@ library attoparsec-internal
73
73
library
74
74
build-depends : array,
75
75
base >= 4.5 && < 5 ,
76
- bytestring < 0.12 ,
76
+ bytestring < 0.13 ,
77
77
containers,
78
78
deepseq,
79
79
scientific >= 0.3.1 && < 0.4 ,
Original file line number Diff line number Diff line change
1
+ branches: master
2
+
1
3
constraint-set text-1
2
4
constraints: text < 2
3
5
ghc: < 8.4
@@ -9,3 +11,27 @@ constraint-set text-2
9
11
ghc: >= 8.4 && < 9.4
10
12
tests: True
11
13
run-tests: True
14
+
15
+ constraint-set bytestring-0.12
16
+ -- bytestring-0.12 requires base >=4.9 (GHC 8.0)
17
+ ghc: >= 8.0
18
+ constraints: bytestring >= 0.12
19
+ --
20
+ -- The following is silently ignored here:
21
+ --
22
+ -- raw-project
23
+ -- allow-newer: bytestring
24
+ --
25
+ tests: True
26
+ run-tests: True
27
+
28
+ -- The following is meant to be for constraint-set bytestring-0.12 only,
29
+ -- but there is currently no way to enable `allow-newer: bytestring`
30
+ -- just for the constraint set.
31
+ --
32
+ -- Since core library `bytestring` is constrained to `installed`,
33
+ -- it is not harmful to allow newer `bytestring` in the default runs
34
+ -- as well---it will have no effect there.
35
+ --
36
+ raw-project
37
+ allow-newer: bytestring
You can’t perform that action at this time.
0 commit comments