packages feed

goldplate 0.1.1 → 0.1.2

raw patch · 3 files changed

+10/−3 lines, 3 filesdep ~regex-pcre-builtin

Dependency ranges changed: regex-pcre-builtin

Files

CHANGELOG.md view
@@ -1,5 +1,12 @@ # CHANGELOG + -  0.1.2 (2020-11-05)+     *  Bump `regex-pcre-builtin` dependency lower bound to 0.95.1.3 to fix+        issue with `Text` regexes (by Stefano Debenedetti).+     *  Fix issue with `replace` in post process step.  If the string was not+        matched at all, or if there was a remainder, it could get dropped+        (by Stefano Debenedetti).+  -  0.1.1 (2020-06-29)      *  Add `GOLDPLATE_BASENAME` and `GOLDPLATE_INPUT_BASENAME` environment         variables.
goldplate.cabal view
@@ -1,5 +1,5 @@ Name:          goldplate-Version:       0.1.1+Version:       0.1.2 Synopsis:      A lightweight golden test runner License:       Apache-2.0 License-file:  LICENSE@@ -37,7 +37,7 @@     Glob                 >= 0.10 && < 0.11,     optparse-applicative >= 0.14 && < 0.16,     process              >= 1.6  && < 1.7,-    regex-pcre-builtin   >= 0.95 && < 0.96,+    regex-pcre-builtin   >= 0.95.1.3 && < 0.96,     text                 >= 1.2  && < 1.3,     time                 >= 1.8  && < 1.10,     unordered-containers >= 0.2  && < 0.3
src/Text/Regex/PCRE/Simple.hs view
@@ -53,6 +53,6 @@         match <- I.regexec regex text         case match of             Left err -> pure . Left $ show err-            Right Nothing -> pure $ Right acc+            Right Nothing -> pure . Right $ acc <> TLB.fromText text             Right (Just (pre, _, post, _)) ->                 go (acc <> TLB.fromText pre <> TLB.fromText replacement) post