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
parsecBuildTool = do
name <- parsecMaybeQuoted nameP
verRange <- parsec <|> pure anyVersion
verRange <- parsecMaybeQuoted parsec <|> pure anyVersion
pure $ Dependency (mkPackageName name) verRange
nameP = intercalate "-" <$> P.sepBy1 component (P.char '-')
Supports Markdown
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