bookhound 0.1.6.0 → 0.1.7.0
raw patch · 2 files changed
+2/−2 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- bookhound.cabal +1/−1
- src/ParserCombinators.hs +1/−1
bookhound.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack name: bookhound-version: 0.1.6.0+version: 0.1.7.0 synopsis: Simple Parser Combinators & Parsers description: Please see the README on GitHub at <https://github.com/albertprz/bookhound#readme> category: Parsers
src/ParserCombinators.hs view
@@ -63,7 +63,7 @@ maybeTimes = (listToMaybe <$>) . check "maybeTimes" (not . hasMany) . anyTimes anyTimes :: Parser a -> Parser [a]-anyTimes p = ((:) <$> p <*> anyTimes p) <|> pure []+anyTimes parser = (parser >>= \x -> (x :) <$> anyTimes parser) <|> pure [] someTimes :: Parser a -> Parser [a] someTimes = check "someTimes" hasSome . anyTimes