packages feed

exon 1.3.0.0 → 1.4.0.0

raw patch · 2 files changed

+7/−8 lines, 2 filesdep ~flatparsePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: flatparse

API changes (from Hackage documentation)

Files

exon.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack  name:           exon-version:        1.3.0.0+version:        1.4.0.0 synopsis:       Customizable Quasiquote Interpolation description:    See https://hackage.haskell.org/package/exon/docs/Exon.html category:       String@@ -106,7 +106,7 @@   ghc-options: -Wall -Wredundant-constraints -Wincomplete-uni-patterns -Wmissing-deriving-strategies -Widentities -Wunused-packages   build-depends:       base >=4.12 && <5-    , flatparse >=0.3.5.1 && <0.4+    , flatparse ==0.4.*     , generics-sop >=0.5.1.1 && <0.6     , ghc-hs-meta ==0.1.*     , incipit-base ==0.5.*
lib/Exon/Parse.hs view
@@ -17,11 +17,10 @@   lookahead,   modify,   put,-  runParserS,+  runParserUtf8,   satisfy,-  some_,   string,-  takeRest,+  takeRestString,   withSpan,   (<|>),   )@@ -34,7 +33,7 @@  span :: Parser () -> Parser String span seek =-  withSpan seek \ _ sp -> inSpan sp takeRest+  withSpan seek \ _ sp -> inSpan sp takeRestString  ws :: Parser Char ws =@@ -42,7 +41,7 @@  whitespace :: Parser RawSegment whitespace =-  WsSegment <$> span (some_ ws)+  WsSegment <$> span (void (some ws))  before ::   Parser a ->@@ -113,7 +112,7 @@  parseWith :: Parser [RawSegment] -> String -> Either Text [RawSegment] parseWith p =-  runParserS p 0 0 >>> \case+  runParserUtf8 p 0 0 >>> \case     OK a _ "" -> Right a     OK _ _ u -> Left ("unconsumed: " <> decodeUtf8 u)     Fail -> Left "fail"