packages feed

syntax-attoparsec 0.1.0.0 → 0.2.0.0

raw patch · 3 files changed

+15/−2 lines, 3 filesdep ~semi-isodep ~syntaxPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: semi-iso, syntax

API changes (from Hackage documentation)

+ Data.Syntax.Attoparsec.ByteString: instance SemiIsoMonad Parser
+ Data.Syntax.Attoparsec.Text: instance SemiIsoMonad Parser
+ Data.Syntax.Attoparsec.Text: instance SyntaxChar Parser Text

Files

Data/Syntax/Attoparsec/ByteString.hs view
@@ -1,3 +1,4 @@+{-# LANGUAGE TupleSections #-} {-# LANGUAGE MultiParamTypeClasses #-} {- | Module      :  Data.Syntax.Attoparsec.ByteString@@ -38,6 +39,9 @@ instance SemiIsoAlternative Parser where     siempty = Parser empty     (Parser x) /|/ (Parser y) = Parser $ x <|> y++instance SemiIsoMonad Parser where+    (Parser m) //= f = Parser $ m >>= (\x -> (x,) <$> getParser (f x))  instance Syntax Parser ByteString where     anyChar = Parser AP.anyWord8
Data/Syntax/Attoparsec/Text.hs view
@@ -1,3 +1,4 @@+{-# LANGUAGE TupleSections #-} {-# LANGUAGE MultiParamTypeClasses #-} {- | Module      :  Data.Syntax.Attoparsec.Text@@ -20,6 +21,7 @@ import qualified Data.Attoparsec.Text as AP import           Data.SemiIsoFunctor import           Data.Syntax+import           Data.Syntax.Char import           Data.Text (Text)  -- | A wrapped 'Data.Attoparsec.Text.Parser'.@@ -39,6 +41,9 @@     siempty = Parser empty     (Parser x) /|/ (Parser y) = Parser $ x <|> y +instance SemiIsoMonad Parser where+    (Parser m) //= f = Parser $ m >>= (\x -> (x,) <$> getParser (f x))+ instance Syntax Parser Text where     anyChar = Parser AP.anyChar     char = Parser . void . AP.char@@ -49,3 +54,7 @@     takeWhile = Parser . AP.takeWhile     takeWhile1 = Parser . AP.takeWhile1     takeTill = Parser . AP.takeTill++instance SyntaxChar Parser Text where+    decimal = Parser AP.decimal+    scientific = Parser AP.scientific
syntax-attoparsec.cabal view
@@ -1,5 +1,5 @@ name:                syntax-attoparsec-version:             0.1.0.0+version:             0.2.0.0 synopsis:            Syntax instances for Attoparsec. license:             MIT license-file:        LICENSE@@ -17,5 +17,5 @@ library   exposed-modules:     Data.Syntax.Attoparsec.Text                        Data.Syntax.Attoparsec.ByteString-  build-depends:       base >= 4 && < 5, syntax, semi-iso, attoparsec, text, bytestring+  build-depends:       base >= 4 && < 5, syntax >= 0.2, semi-iso >= 0.3, attoparsec, text, bytestring   default-language:    Haskell2010