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
a0d39a85
Commit
a0d39a85
authored
May 14, 2008
by
Duncan Coutts
Browse files
Remove redundant Char test in parseBuildToolName
It was made redundant after the isSymbol test was removed. Spotted by Igloo.
parent
bbea683b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Distribution/ParseUtils.hs
View file @
a0d39a85
...
...
@@ -545,10 +545,7 @@ parseBuildToolName :: ReadP r String
parseBuildToolName
=
do
ns
<-
sepBy1
component
(
ReadP
.
char
'-'
)
return
(
intercalate
"-"
ns
)
where
component
=
do
cs
<-
munch1
(
\
c
->
isAlphaNum
c
||
c
==
'+'
||
c
==
'_'
&&
c
/=
'-'
)
cs
<-
munch1
(
\
c
->
isAlphaNum
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