File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -305,5 +305,8 @@ evalPackages.writeTextFile {
305
305
NoUnliftedNewtypes
306
306
ViewPatterns
307
307
NoViewPatterns
308
- '' ;
308
+ ${ pkgs . lib . optionalString ( builtins . compareVersions ghc . version "9.11" >= 0 ) ''
309
+ OrPatterns
310
+ NoOrPatterns
311
+ '' } '';
309
312
}
Original file line number Diff line number Diff line change @@ -13,10 +13,14 @@ in recurseIntoAttrs {
13
13
14
14
buildCommand = ''
15
15
expected=$(mktemp)
16
- ${ ghc } /bin/${ ghc . targetPrefix } ghc --supported-languages >$expected
16
+ dummy=$(mktemp)
17
+ ${ ghc } /bin/${ ghc . targetPrefix } ghc --supported-languages | sort >$expected
18
+ sort ${ supported-langauges } > $dummy
17
19
18
- echo 'diff -u $expected ${ supported-langauges } '
19
- diff -u $expected ${ supported-langauges }
20
+ echo 'Expected `${ ghc } /bin/${ ghc . targetPrefix } ghc --supported-languages | sort`'
21
+ echo 'The calculated by lib/supported-languages.nix `sort ${ supported-langauges } `'
22
+ echo 'diff -u $dummy $expected'
23
+ diff -u $dummy $expected
20
24
21
25
touch $out
22
26
'' ;
You can’t perform that action at this time.
0 commit comments