Skip to content
GitLab
Menu
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
aec96038
Commit
aec96038
authored
Dec 02, 2008
by
Duncan Coutts
Browse files
Use commaSep everywhere in the Check module
parent
77386283
Changes
1
Hide whitespace changes
Inline
Side-by-side
Distribution/PackageDescription/Check.hs
View file @
aec96038
...
...
@@ -272,17 +272,17 @@ checkFields pkg =
PackageBuildWarning
$
quote
unknown
++
" is not a known 'build-type'. "
++
"The known build types are: "
++
intercalate
", "
(
map
display
knownBuildTypes
)
++
commaSep
(
map
display
knownBuildTypes
)
_
->
Nothing
,
check
(
not
(
null
unknownCompilers
))
$
PackageBuildWarning
$
"Unknown compiler "
++
intercalate
", "
(
map
quote
unknownCompilers
)
"Unknown compiler "
++
commaSep
(
map
quote
unknownCompilers
)
++
" in 'tested-with' field."
,
check
(
not
(
null
unknownExtensions
))
$
PackageBuildWarning
$
"Unknown extensions: "
++
intercalate
", "
unknownExtensions
"Unknown extensions: "
++
commaSep
unknownExtensions
,
check
(
null
(
category
pkg
))
$
PackageDistSuspicious
"No 'category' field."
...
...
@@ -686,17 +686,17 @@ checkConditionals pkg =
check
(
not
$
null
unknownOSs
)
$
PackageDistInexcusable
$
"Unknown operating system name "
++
intercalate
", "
(
map
quote
unknownOSs
)
++
commaSep
(
map
quote
unknownOSs
)
,
check
(
not
$
null
unknownArches
)
$
PackageDistInexcusable
$
"Unknown architecture name "
++
intercalate
", "
(
map
quote
unknownArches
)
++
commaSep
(
map
quote
unknownArches
)
,
check
(
not
$
null
unknownImpls
)
$
PackageDistInexcusable
$
"Unknown compiler name "
++
intercalate
", "
(
map
quote
unknownImpls
)
++
commaSep
(
map
quote
unknownImpls
)
]
where
unknownOSs
=
[
os
|
OS
(
OtherOS
os
)
<-
conditions
]
...
...
@@ -908,4 +908,4 @@ quote :: String -> String
quote
s
=
"'"
++
s
++
"'"
commaSep
::
[
String
]
->
String
commaSep
=
intercalate
","
commaSep
=
intercalate
",
"
Write
Preview
Supports
Markdown
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