Skip to content

Commit

Permalink
Monad -> Applicative
Browse files Browse the repository at this point in the history
  • Loading branch information
fgaz committed Aug 20, 2018
1 parent fa1b5c6 commit be94cff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cabal/Distribution/Types/Dependency.hs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ instance Parsec Dependency where
parsec = do
name <- lexemeParsec
libs <- option [LMainLibName]
$ (char ':' *> spaces >>)
$ (char ':' *> spaces *>)
$ between (char '{' *> spaces) (spaces <* char '}')
$ parsecCommaList (makeLib name <$> parsecUnqualComponentName)
ver <- parsec <|> pure anyVersion
Expand All @@ -76,7 +76,7 @@ instance Text Dependency where
parse = do name <- parse
Parse.skipSpaces
libs <- option [LMainLibName]
$ (char ':' >>)
$ (char ':' *>)
$ between (char '{') (char '}')
$ parsecCommaList (makeLib name <$> parsecUnqualComponentName)
Parse.skipSpaces
Expand Down

0 comments on commit be94cff

Please sign in to comment.