bookhound 0.2.1 → 0.2.2
raw patch · 2 files changed
+5/−4 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- bookhound.cabal +1/−1
- src/Bookhound/Parser.hs +4/−3
bookhound.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack name: bookhound-version: 0.2.1+version: 0.2.2 synopsis: Simple Parser Combinators description: Please see the README on GitHub at <https://github.com/albertprz/bookhound#readme> category: Parser Combinators
src/Bookhound/Parser.hs view
@@ -44,11 +44,12 @@ mempty = pure mempty instance Alternative Parser where- (<|>) (P p t e) ~(P p' t' e') =- applyTransformsErrors [ t, t' ] [ e, e' ] $+ (<|>) (P p t e) p2 =+ applyTransformError t e $ mkParser \x -> case p x of- Error _ -> p' x+ Error _ -> let (P _ t' e') = p2 in+ parse (applyTransformsErrors [t, t'] [e, e'] p2) x result -> result empty = mkParser \i -> if Text.null i then