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
ad1b3e4c
Commit
ad1b3e4c
authored
Oct 30, 2016
by
John Ericson
Browse files
parsec: Allow parse quoted-versions for build-tools
Is this an intentional inconsistency with the old parser?
parent
e821200c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Cabal/Distribution/Parsec/Class.hs
View file @
ad1b3e4c
...
...
@@ -357,7 +357,7 @@ parsecBuildTool :: P.Stream s Identity Char => P.Parsec s [PWarning] Dependency
parsecBuildTool
=
do
name
<-
parsecMaybeQuoted
nameP
P
.
spaces
verRange
<-
parsec
<|>
pure
anyVersion
verRange
<-
parsecMaybeQuoted
parsec
<|>
pure
anyVersion
pure
$
Dependency
(
mkPackageName
name
)
verRange
where
nameP
=
intercalate
"-"
<$>
P
.
sepBy1
component
(
P
.
char
'-'
)
...
...
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