-
Notifications
You must be signed in to change notification settings - Fork 696
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test-case for show-casing issue #7395
- Loading branch information
Showing
6 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
cabal-testsuite/PackageTests/Ambiguity/multiple-cabal-files/Main.hs
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,4 @@ | ||
module Main where | ||
|
||
main :: IO () | ||
main = putStrLn "Hello, Haskell!" |
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/Ambiguity/multiple-cabal-files/cabal.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 |
---|---|---|
@@ -0,0 +1 @@ | ||
packages: multiple-cabal-files.cabal multiple-cabal-files2.cabal |
7 changes: 7 additions & 0 deletions
7
cabal-testsuite/PackageTests/Ambiguity/multiple-cabal-files/multiple-cabal-files.cabal
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 @@ | ||
cabal-version: 2.4 | ||
name: multiple-cabal-files | ||
version: 0.1.0.0 | ||
|
||
executable exe | ||
main-is: Main.hs | ||
|
7 changes: 7 additions & 0 deletions
7
cabal-testsuite/PackageTests/Ambiguity/multiple-cabal-files/multiple-cabal-files2.cabal
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 @@ | ||
cabal-version: 2.4 | ||
name: multiple-cabal-files | ||
version: 0.1.0.0 | ||
|
||
executable exe | ||
main-is: Main.hs | ||
|
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,4 @@ | ||
# cabal v2-build | ||
Error: cabal: Multiple packages have been found: | ||
multiple-cabal-files-0.1.0.0 defined in: ./multiple-cabal-files.cabal | ||
multiple-cabal-files-0.1.0.0 defined in: ./multiple-cabal-files2.cabal |
5 changes: 5 additions & 0 deletions
5
cabal-testsuite/PackageTests/Ambiguity/setup-cabal-file.test.hs
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,5 @@ | ||
import Test.Cabal.Prelude | ||
-- Test that we can resolve a module name ambiguity when reexporting | ||
-- by explicitly specifying what package we want. | ||
main = cabalTest $ withDirectory "multiple-cabal-files" $ | ||
fails $ cabal "v2-build" [] |