packages feed

simple-parser 0.12.0 → 0.12.1

raw patch · 2 files changed

+7/−12 lines, 2 filesdep ~bytestringdep ~mmorphPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: bytestring, mmorph

API changes (from Hackage documentation)

- SimpleParser.Lexer: instance GHC.Classes.Eq a => GHC.Classes.Eq (SimpleParser.Lexer.LexedChunk a)
- SimpleParser.Lexer: instance GHC.Show.Show a => GHC.Show.Show (SimpleParser.Lexer.LexedChunk a)
- SimpleParser.Stream: type family Pos s :: Type;
+ SimpleParser.Stream: type Chunk s :: Type;
+ SimpleParser.Stream: type Pos s :: Type;
+ SimpleParser.Stream: type Token s :: Type;

Files

simple-parser.cabal view
@@ -1,13 +1,13 @@ cabal-version: 1.12 --- This file has been generated from package.yaml by hpack version 0.34.4.+-- This file has been generated from package.yaml by hpack version 0.35.0. -- -- see: https://github.com/sol/hpack ----- hash: cfc5b1cb72599e6ff1fdcda8ef9bca96a91c3fb347c172a0bcf61c9fd18f7e48+-- hash: 464f6735c9053e41c4e71258d387276d1b8d89c3b7506b41e260af15789b3767  name:           simple-parser-version:        0.12.0+version:        0.12.1 synopsis:       Simple parser combinators description:    Please see the README on GitHub at <https://github.com/ejconlon/simple-parser#readme> category:       Parsing@@ -74,11 +74,11 @@   ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wpartial-fields -Wredundant-constraints -fno-warn-unused-top-binds   build-depends:       base >=4.12 && <5-    , bytestring ==0.10.*+    , bytestring >=0.10 && <0.12     , containers ==0.6.*     , errata ==0.4.*     , exceptions ==0.10.*-    , mmorph ==1.1.*+    , mmorph >=1.1 && <1.3     , mtl ==2.2.*     , nonempty-containers ==0.3.*     , scientific ==0.3.*@@ -114,11 +114,11 @@   ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wpartial-fields -Wredundant-constraints -fno-warn-unused-top-binds -threaded -rtsopts -with-rtsopts=-N   build-depends:       base >=4.12 && <5-    , bytestring ==0.10.*+    , bytestring >=0.10 && <0.12     , containers ==0.6.*     , errata ==0.4.*     , exceptions ==0.10.*-    , mmorph ==1.1.*+    , mmorph >=1.1 && <1.3     , mtl ==2.2.*     , nonempty-containers ==0.3.*     , scientific ==0.3.*
src/SimpleParser/Lexer.hs view
@@ -36,10 +36,6 @@   , lsEndPos :: !p   } deriving stock (Eq, Show, Functor, Foldable, Traversable) -newtype LexedChunk a = LexedChunk { unLexedChunk :: Seq a }-  deriving stock (Show)-  deriving newtype (Eq)- instance Stream (LexedStream p a) where   type Token (LexedStream p a) = a   type Chunk (LexedStream p a) = Seq a@@ -114,7 +110,6 @@   ExplainLabel l1, ExplainError e1, ExplainLabel l2, ExplainError e2) =>   Parser l1 s e1 a -> (LexedStream (Pos s) a -> LexedStream (Pos s) a) -> Parser l2 (LexedStream (Pos s) a) e2 b -> String -> IO (Maybe b) lexedParseInteractive lp f p input = do-  -- TODO renderInteractive TWICE   let lexRes = runParser (lexedParser lp <* matchEnd) (newLinePosStream (T.pack input))   putStrLn "Lex result:"   renderInteractive ErrorStyleErrata input lexRes