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
35b34c15
Commit
35b34c15
authored
Mar 19, 2008
by
Duncan Coutts
Browse files
Allow '_' char in buld tool names
eg we have build-tools like "pg_config"
parent
60c773d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Distribution/ParseUtils.hs
View file @
35b34c15
...
...
@@ -521,7 +521,10 @@ parseBuildToolName :: ReadP r String
parseBuildToolName
=
do
ns
<-
sepBy1
component
(
ReadP
.
char
'-'
)
return
(
intercalate
"-"
ns
)
where
component
=
do
cs
<-
munch1
(
\
c
->
isAlphaNum
c
||
isSymbol
c
&&
c
/=
'-'
)
cs
<-
munch1
(
\
c
->
isAlphaNum
c
||
isSymbol
c
||
c
==
'_'
&&
c
/=
'-'
)
if
all
isDigit
cs
then
pfail
else
return
cs
-- pkg-config allows versions and other letters in package names,
...
...
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