Commit ad1b3e4c authored by John Ericson's avatar John Ericson
Browse files

parsec: Allow parse quoted-versions for build-tools

Is this an intentional inconsistency with the old parser?
parent e821200c
...@@ -357,7 +357,7 @@ parsecBuildTool :: P.Stream s Identity Char => P.Parsec s [PWarning] Dependency ...@@ -357,7 +357,7 @@ parsecBuildTool :: P.Stream s Identity Char => P.Parsec s [PWarning] Dependency
parsecBuildTool = do parsecBuildTool = do
name <- parsecMaybeQuoted nameP name <- parsecMaybeQuoted nameP
P.spaces P.spaces
verRange <- parsec <|> pure anyVersion verRange <- parsecMaybeQuoted parsec <|> pure anyVersion
pure $ Dependency (mkPackageName name) verRange pure $ Dependency (mkPackageName name) verRange
where where
nameP = intercalate "-" <$> P.sepBy1 component (P.char '-') nameP = intercalate "-" <$> P.sepBy1 component (P.char '-')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment