text-lips 0.1 → 0.1.0.1
raw patch · 3 files changed
+21/−3 lines, 3 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Text.Lips: location :: (LocParsing p, MonadTrans t, Monad p) => t p (ParserLoc p)
+ Text.Lips: location :: (LocParsing p, MonadTrans t, Monad m, LocParsing m, p ~ t m, ParserLoc p ~ ParserLoc m) => p (ParserLoc p)
- Text.Lips: resetLineNr :: (ResetLineParsing p, MonadTrans t, Monad p) => Word -> t p (Seq Text)
+ Text.Lips: resetLineNr :: (ResetLineParsing p, MonadTrans t, Monad m, ResetLineParsing m, p ~ t m) => Word -> p (Seq Text)
Files
- README.md +13/−0
- src/Text/Lips.hs +2/−2
- text-lips.cabal +6/−1
+ README.md view
@@ -0,0 +1,13 @@+Text-Lips+=========++[](https://travis-ci.org/mvv/text-lips) [](http://hackage.haskell.org/package/text-lips)++Monadic parsing combinator library with attention to locations.++Installation+------------+The usual:++ $ cabal install+
src/Text/Lips.hs view
@@ -340,7 +340,7 @@ type ParserLoc p -- | The current location. location ∷ p (ParserLoc p)- default location ∷ (MonadTrans t, Monad p) ⇒ t p (ParserLoc p)+ default location ∷ (MonadTrans t, Monad m, LocParsing m, p ~ t m, ParserLoc p ~ ParserLoc m) ⇒ p (ParserLoc p) location = lift location -- | Attach the starting location to the parsed value. located ∷ p α → p (Located (ParserLoc p) α)@@ -352,7 +352,7 @@ -- | Reset the current line number and return the text lines fully consumed -- by the parser so far. resetLineNr ∷ Word → p (Seq Text)- default resetLineNr ∷ (MonadTrans t, Monad p) ⇒ Word → t p (Seq Text)+ default resetLineNr ∷ (MonadTrans t, Monad m, ResetLineParsing m, p ~ t m) ⇒ Word → p (Seq Text) resetLineNr = lift . resetLineNr instance LocParsing Parser where
text-lips.cabal view
@@ -1,5 +1,5 @@ Name: text-lips-Version: 0.1+Version: 0.1.0.1 Category: Text, Parsing Stability: experimental Synopsis: Monadic parsing combinator library with attention to locations@@ -14,6 +14,11 @@ Copyright: 2014-2016 Mikhail Vorozhtsov <mikhail.vorozhtsov@gmail.com> License: BSD3 License-File: LICENSE++Extra-Source-Files:+ README.md++Tested-With: GHC==7.6.3, GHC==7.8.4, GHC==7.10.3, GHC==8.0.2, GHC==8.2.1 Cabal-Version: >= 1.6.0 Build-Type: Simple