Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
e0515186
Commit
e0515186
authored
Jul 23, 2016
by
Mikhail Glushenkov
Browse files
Check that all internal libraries have a name.
parent
11ea2294
Changes
1
Hide whitespace changes
Inline
Side-by-side
Cabal/Distribution/PackageDescription/Check.hs
View file @
e0515186
...
@@ -178,6 +178,10 @@ checkSanity pkg =
...
@@ -178,6 +178,10 @@ checkSanity pkg =
PackageBuildImpossible
PackageBuildImpossible
"No executables, libraries, tests, or benchmarks found. Nothing to do."
"No executables, libraries, tests, or benchmarks found. Nothing to do."
,
check
(
any
isNothing
(
map
libName
$
subLibraries
pkg
))
$
PackageBuildImpossible
$
"Found one or more unnamed internal libraries. "
++
"Only the non-internal library can have the same name as the package."
,
check
(
not
(
null
duplicateNames
))
$
,
check
(
not
(
null
duplicateNames
))
$
PackageBuildImpossible
$
"Duplicate sections: "
++
commaSep
duplicateNames
PackageBuildImpossible
$
"Duplicate sections: "
++
commaSep
duplicateNames
++
". The name of every library, executable, test suite, and benchmark section in"
++
". The name of every library, executable, test suite, and benchmark section in"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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