Skip to content
Snippets Groups Projects
Commit a4bf1396 authored by Oleg Grenrus's avatar Oleg Grenrus
Browse files

Make ExeDependency parser stricter

parent c488c4d3
No related branches found
No related tags found
No related merge requests found
......@@ -53,11 +53,11 @@ instance Pretty ExeDependency where
-- Nothing
--
-- >>> simpleParsec "happy :happy >= 1.19.12" :: Maybe ExeDependency
-- Just (ExeDependency (PackageName "happy") (UnqualComponentName "happy") (OrLaterVersion (mkVersion [1,19,12])))
-- Nothing
--
instance Parsec ExeDependency where
parsec = do
name <- lexemeParsec
name <- parsec
_ <- P.char ':'
exe <- lexemeParsec
ver <- parsec <|> pure anyVersion
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment