megaparsec 9.6.0 → 9.6.1
raw patch · 2 files changed
+8/−2 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Text.Megaparsec.State: PosState :: s -> !Int -> !SourcePos -> Pos -> String -> PosState s
+ Text.Megaparsec.State: State :: s -> {-# UNPACK #-} !Int -> PosState s -> [ParseError s e] -> State s e
+ Text.Megaparsec.State: [pstateInput] :: PosState s -> s
+ Text.Megaparsec.State: [pstateLinePrefix] :: PosState s -> String
+ Text.Megaparsec.State: [pstateOffset] :: PosState s -> !Int
+ Text.Megaparsec.State: [pstateSourcePos] :: PosState s -> !SourcePos
+ Text.Megaparsec.State: [pstateTabWidth] :: PosState s -> Pos
+ Text.Megaparsec.State: [stateInput] :: State s e -> s
+ Text.Megaparsec.State: [stateOffset] :: State s e -> {-# UNPACK #-} !Int
+ Text.Megaparsec.State: [stateParseErrors] :: State s e -> [ParseError s e]
+ Text.Megaparsec.State: [statePosState] :: State s e -> PosState s
+ Text.Megaparsec.State: data PosState s
+ Text.Megaparsec.State: data State s e
+ Text.Megaparsec.State: initialPosState :: FilePath -> s -> PosState s
+ Text.Megaparsec.State: initialState :: FilePath -> s -> State s e
+ Text.Megaparsec.State: instance (Control.DeepSeq.NFData s, Control.DeepSeq.NFData (Text.Megaparsec.Error.ParseError s e)) => Control.DeepSeq.NFData (Text.Megaparsec.State.State s e)
+ Text.Megaparsec.State: instance (Data.Data.Data e, Data.Data.Data (Text.Megaparsec.Error.ParseError s e), Data.Data.Data s) => Data.Data.Data (Text.Megaparsec.State.State s e)
+ Text.Megaparsec.State: instance (GHC.Classes.Eq (Text.Megaparsec.Error.ParseError s e), GHC.Classes.Eq s) => GHC.Classes.Eq (Text.Megaparsec.State.State s e)
+ Text.Megaparsec.State: instance (GHC.Show.Show (Text.Megaparsec.Error.ParseError s e), GHC.Show.Show s) => GHC.Show.Show (Text.Megaparsec.State.State s e)
+ Text.Megaparsec.State: instance Control.DeepSeq.NFData s => Control.DeepSeq.NFData (Text.Megaparsec.State.PosState s)
+ Text.Megaparsec.State: instance Data.Data.Data s => Data.Data.Data (Text.Megaparsec.State.PosState s)
+ Text.Megaparsec.State: instance GHC.Classes.Eq s => GHC.Classes.Eq (Text.Megaparsec.State.PosState s)
+ Text.Megaparsec.State: instance GHC.Generics.Generic (Text.Megaparsec.State.PosState s)
+ Text.Megaparsec.State: instance GHC.Generics.Generic (Text.Megaparsec.State.State s e)
+ Text.Megaparsec.State: instance GHC.Show.Show s => GHC.Show.Show (Text.Megaparsec.State.PosState s)
Files
- CHANGELOG.md +6/−0
- megaparsec.cabal +2/−2
CHANGELOG.md view
@@ -1,5 +1,11 @@ *Megaparsec follows [SemVer](https://semver.org/).* +## Megaparsec 9.6.1++* Exposed `Text.Megaparsec.State`, so that the new functions (`initialState`+ and `initialPosState`) can be actually imported from it. [PR+ 549](https://github.com/mrkkrp/megaparsec/pull/549).+ ## Megaparsec 9.6.0 * Added the functions `initialState` and `initialPosState` to
megaparsec.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.4 name: megaparsec-version: 9.6.0+version: 9.6.1 license: BSD-2-Clause license-file: LICENSE.md maintainer: Mark Karpov <markkarpov92@gmail.com>@@ -46,13 +46,13 @@ Text.Megaparsec.Error.Builder Text.Megaparsec.Internal Text.Megaparsec.Pos+ Text.Megaparsec.State Text.Megaparsec.Stream other-modules: Text.Megaparsec.Class Text.Megaparsec.Common Text.Megaparsec.Lexer- Text.Megaparsec.State default-language: Haskell2010 build-depends: