Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
9dc4ad74
Commit
9dc4ad74
authored
Oct 29, 2013
by
Mikhail Glushenkov
Browse files
Exit with error if a library/exe/... contains duplicate modules.
Fixes #1483.
parent
261f5437
Changes
1
Hide whitespace changes
Inline
Side-by-side
Cabal/Distribution/PackageDescription/Check.hs
View file @
9dc4ad74
...
...
@@ -244,7 +244,7 @@ checkLibrary _pkg lib =
catMaybes
[
check
(
not
(
null
moduleDuplicates
))
$
PackageBuild
Warning
$
PackageBuild
Impossible
$
"Duplicate modules in library: "
++
commaSep
(
map
display
moduleDuplicates
)
]
...
...
@@ -275,7 +275,7 @@ checkExecutable pkg exe =
++
"To use this feature you must specify 'cabal-version: >= 1.18'."
,
check
(
not
(
null
moduleDuplicates
))
$
PackageBuild
Warning
$
PackageBuild
Impossible
$
"Duplicate modules in executable '"
++
exeName
exe
++
"': "
++
commaSep
(
map
display
moduleDuplicates
)
]
...
...
@@ -301,7 +301,7 @@ checkTestSuite pkg test =
_
->
Nothing
,
check
(
not
$
null
moduleDuplicates
)
$
PackageBuild
Warning
$
PackageBuild
Impossible
$
"Duplicate modules in test suite '"
++
testName
test
++
"': "
++
commaSep
(
map
display
moduleDuplicates
)
...
...
@@ -359,7 +359,7 @@ checkBenchmark pkg bm =
_
->
Nothing
,
check
(
not
$
null
moduleDuplicates
)
$
PackageBuild
Warning
$
PackageBuild
Impossible
$
"Duplicate modules in benchmark '"
++
benchmarkName
bm
++
"': "
++
commaSep
(
map
display
moduleDuplicates
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment