Skip to content

Commit 6c0a613

Browse files
committed
Add with-ghc.config to reset --with-compiler=ghc
1 parent cf4d801 commit 6c0a613

File tree

7 files changed

+13
-0
lines changed

7 files changed

+13
-0
lines changed

cabal-testsuite/PackageTests/VersionPriority/1-web-constraints-import.project

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ packages: .
22
allow-newer: hashable:*
33
constraints: hashable ==1.4.2.0
44
import: https://www.stackage.org/nightly-2023-12-07/cabal.config
5+
import: with-ghc.config

cabal-testsuite/PackageTests/VersionPriority/1-web-import-constraints.project

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ packages: .
22
allow-newer: hashable:*
33
import: https://www.stackage.org/nightly-2023-12-07/cabal.config
44
constraints: hashable ==1.4.2.0
5+
import: with-ghc.config

cabal-testsuite/PackageTests/VersionPriority/2-web-constraints-import.project

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ packages: .
22
allow-newer: hashable:*
33
constraints: hashable ==1.4.2.0
44
import: stackage-web.config
5+
import: with-ghc.config

cabal-testsuite/PackageTests/VersionPriority/2-web-import-constraints.project

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ packages: .
22
allow-newer: hashable:*
33
import: stackage-web.config
44
constraints: hashable ==1.4.2.0
5+
import: with-ghc.config

cabal-testsuite/PackageTests/VersionPriority/3-web-constraints-import.project

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ packages: .
22
allow-newer: hashable:*
33
constraints: hashable ==1.4.2.0
44
import: hop-web.config
5+
import: with-ghc.config

cabal-testsuite/PackageTests/VersionPriority/3-web-import-constraints.project

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ packages: .
22
allow-newer: hashable:*
33
import: hop-web.config
44
constraints: hashable ==1.4.2.0
5+
import: with-ghc.config
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
-- WARNING: Override the `with-compiler: ghc-x.y.z` of the stackage import, of
2+
-- https://www.stackage.org/nightly-yyyy-mm-dd/cabal.config. Otherwise tests
3+
-- will fail with:
4+
-- -Error: [Cabal-5490]
5+
-- -Cannot find the program 'ghc'. User-specified path 'ghc-x.y.z' does not
6+
-- refer to an executable and the program is not on the system path.
7+
with-compiler: ghc

0 commit comments

Comments
 (0)