gigaparsec 0.2.2.0 → 0.2.2.1
raw patch · 3 files changed
+6/−3 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +3/−0
- gigaparsec.cabal +1/−1
- src/Text/Gigaparsec/Internal/Token/Symbol.hs +2/−2
CHANGELOG.md view
@@ -1,5 +1,8 @@ # Revision history for gigaparsec +## 0.2.2.1 -- 2014-01-29+* Fixed bug where case sensitive keywords where parsed insensitively and vice-versa+ ## 0.2.2.0 -- 2024-01-21 * Added `manyMap` and `someMap` combinators.
gigaparsec.cabal view
@@ -20,7 +20,7 @@ -- PVP summary: +-+------- breaking API changes -- | | +----- non-breaking API additions -- | | | +--- code changes with no API change-version: 0.2.2.0+version: 0.2.2.1 -- A short (one-line) description of the package. synopsis:
src/Text/Gigaparsec/Internal/Token/Symbol.hs view
@@ -44,8 +44,8 @@ _softKeyword :: Bool -> CharPredicate -> String -> Parsec () _softKeyword caseSensitive letter kw- | caseSensitive = atomic (nfb letter caseString)- | otherwise = atomic (nfb letter (string kw))+ | not caseSensitive = atomic (nfb letter caseString)+ | otherwise = atomic (nfb letter (string kw)) where nfb Nothing p = void p nfb (Just c) p = p *> (notFollowedBy (satisfy c) <?> ["end of " ++ kw]) n = length kw