packages feed

replace-attoparsec 1.2.1.0 → 1.2.2.0

raw patch · 4 files changed

+10/−9 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

README.md view
@@ -105,7 +105,7 @@ number with a prefix `"0x"`, and sections which can't. Parse the numbers.  ```haskell-let hexparser = string "0x" >> hexadecimal :: Parser Integer+let hexparser = string "0x" *> hexadecimal :: Parser Integer fromRight [] $ parseOnly (sepCap hexparser) "0xA 000 0xFFFF" ``` ```haskell@@ -118,7 +118,7 @@ the parsed number.  ```haskell-let hexparser = string "0x" >> hexadecimal :: Parser Integer+let hexparser = string "0x" *> hexadecimal :: Parser Integer fromRight [] $ parseOnly (findAll hexparser) "0xA 000 0xFFFF" ``` ```haskell@@ -131,7 +131,7 @@ parses as a hexadecimal number.  ```haskell-let hexparser = chunk "0x" >> hexadecimal :: Parser Integer+let hexparser = chunk "0x" *> hexadecimal :: Parser Integer fromRight [] $ parseOnly (findAllCap hexparser) "0xA 000 0xFFFF" ``` ```haskell@@ -145,13 +145,14 @@ expression. We can express the pattern with a recursive parser.  ```haskell+import Data.Functor let parens :: Parser ()     parens = do         char '('         manyTill             (void (satisfy $ notInClass "()") <|> void parens)             (char ')')-        return ()+        pure ()  fromRight [] $ parseOnly (findAll parens) "(()) (()())" ```@@ -196,7 +197,7 @@ combinator.  ```haskell-let hexparser = string "0x" >> hexadecimal :: Parser Integer+let hexparser = string "0x" *> hexadecimal :: Parser Integer streamEdit (match hexparser) (\(s,r) -> if r <= 16 then T.pack (show r) else s) "0xA 000 0xFFFF" ``` ```haskell
replace-attoparsec.cabal view
@@ -1,7 +1,7 @@ name:                replace-attoparsec-version:             1.2.1.0+version:             1.2.2.0 cabal-version:       1.18-synopsis:            Find, replace, and edit text patterns with Attoparsec parsers+synopsis:            Find, replace, and edit text patterns with Attoparsec parsers (instead of regex) homepage:            https://github.com/jamesdbrock/replace-attoparsec bug-reports:         https://github.com/jamesdbrock/replace-attoparsec/issues license:             BSD2
src/Replace/Attoparsec/ByteString.hs view
@@ -63,7 +63,7 @@ -- -- === Output ----- The input stream is separated and output int a list of sections:+-- The input stream is separated and output into a list of sections: -- -- * Sections which can parsed by the pattern @sep@ will be parsed and captured --   as 'Right'
src/Replace/Attoparsec/Text.hs view
@@ -64,7 +64,7 @@ -- -- === Output ----- The input stream is separated and output int a list of sections:+-- The input stream is separated and output into a list of sections: -- -- * Sections which can parsed by the pattern @sep@ will be parsed and captured --   as 'Right'