-
Notifications
You must be signed in to change notification settings - Fork 698
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
8 changed files
with
62 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,30 @@ | ||
# checking project import with trailing space | ||
# cabal v2-build | ||
Error: [Cabal-7090] | ||
Error parsing project file <ROOT>/trailing-space.project: | ||
import has whitespace; | ||
Warning: import has leading or trailing whitespace; | ||
'https://www.stackage.org/nightly-2024-12-05/cabal.config ' | ||
imported by: trailing-space.project | ||
Configuration is affected by the following files: | ||
- https://www.stackage.org/nightly-2024-12-05/cabal.config | ||
imported by: trailing-space.project | ||
- trailing-space.project | ||
- with-ghc.config | ||
imported by: trailing-space.project | ||
Resolving dependencies... | ||
Build profile: -w ghc-<GHCVER> -O1 | ||
In order, the following would be built: | ||
- my-0.1 (lib:my) (first run) | ||
# checking project import with tabs and spaces | ||
# cabal v2-build | ||
Error: [Cabal-7090] | ||
Error parsing project file <ROOT>/tabs-and-spaces.project: | ||
import has whitespace; | ||
Warning: import has leading or trailing whitespace; | ||
'https://www.stackage.org/nightly-2024-12-05/cabal.config ' | ||
imported by: tabs-and-spaces.project | ||
Configuration is affected by the following files: | ||
- https://www.stackage.org/nightly-2024-12-05/cabal.config | ||
imported by: tabs-and-spaces.project | ||
- tabs-and-spaces.project | ||
- with-ghc.config | ||
imported by: tabs-and-spaces.project | ||
Resolving dependencies... | ||
Build profile: -w ghc-<GHCVER> -O1 | ||
In order, the following would be built: | ||
- my-0.1 (lib:my) (first run) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name: my | ||
version: 0.1 | ||
license: BSD3 | ||
cabal-version: >= 1.2 | ||
build-type: Simple | ||
|
||
library | ||
exposed-modules: Foo | ||
build-depends: base |
3 changes: 2 additions & 1 deletion
3
cabal-testsuite/PackageTests/UntrimmedImport/tabs-and-spaces.project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
optional-packages: . | ||
packages: . | ||
import: https://www.stackage.org/nightly-2024-12-05/cabal.config | ||
import: with-ghc.config |
3 changes: 2 additions & 1 deletion
3
cabal-testsuite/PackageTests/UntrimmedImport/trailing-space.project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
optional-packages: . | ||
packages: . | ||
import: https://www.stackage.org/nightly-2024-12-05/cabal.config | ||
import: with-ghc.config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
-- WARNING: Override the `with-compiler: ghc-x.y.z` of the stackage import, of | ||
-- https://www.stackage.org/nightly-yyyy-mm-dd/cabal.config. Otherwise tests | ||
-- will fail with: | ||
-- -Error: [Cabal-5490] | ||
-- -Cannot find the program 'ghc'. User-specified path 'ghc-x.y.z' does not | ||
-- refer to an executable and the program is not on the system path. | ||
with-compiler: ghc |