packages feed

incremental-parser 0.3.2.1 → 0.3.2.2

raw patch · 2 files changed

+4/−4 lines, 2 filesdep ~checkersPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: checkers

API changes (from Hackage documentation)

Files

Text/ParserCombinators/Incremental.hs view
@@ -170,12 +170,12 @@             | otherwise       = append p1 p2  appendIncremental :: (Monoid s, Semigroup r) => Parser t s r -> Parser t s r -> Parser t s r-appendIncremental (Result s r) p = resultPart (<> r) (feed s p)+appendIncremental (Result s r) p = resultPart (r <>) (feed s p) appendIncremental (ResultPart r e f) p2 = ResultPart r (appendIncremental e p2) (flip appendIncremental p2 . f) appendIncremental p1 p2 = apply (`appendIncremental` p2) p1  append :: (Monoid s, Semigroup r) => Parser t s r -> Parser t s r -> Parser t s r-append (Result s r) p2 = prepend (<> r) (feed s p2)+append (Result s r) p2 = prepend (r <>) (feed s p2) append p1 p2 = apply (`append` p2) p1  -- | Two parsers can be sequentially joined.
incremental-parser.cabal view
@@ -1,5 +1,5 @@ Name:                incremental-parser-Version:             0.3.2.1+Version:             0.3.2.2 Cabal-Version:       >= 1.10 Build-Type:          Simple Synopsis:            Generic parser library capable of providing partial results from partial input.@@ -37,7 +37,7 @@   x-uses-tf:         true   Default-Language:  Haskell2010   Build-Depends:     base < 5, monoid-subclasses < 0.5,-                     QuickCheck >= 2 && < 3, checkers >= 0.3.2 && < 0.5,+                     QuickCheck >= 2 && < 3, checkers >= 0.3.2 && < 0.6,                      tasty >= 0.7 && < 1.3, tasty-quickcheck >= 0.7 && < 1.0   Main-is:           Test/TestIncrementalParser.hs   Other-Modules:     Text.ParserCombinators.Incremental,