regex 1.0.1.5 → 1.0.2.0
raw patch · 4 files changed
+18/−12 lines, 4 filesdep ~base-compatPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base-compat
API changes (from Hackage documentation)
Files
- README.md +2/−1
- Text/RE/ZeInternals/Replace.lhs +8/−8
- changelog +6/−1
- regex.cabal +2/−2
README.md view
@@ -40,7 +40,8 @@ - [X] 2017-06-05 v1.0.1.2 [Permit utf8-string-1](https://github.com/iconnect/regex/milestone/21) - [X] 2017-06-05 v1.0.1.3 [Suspend Windows tests for PCRE on UTF-8 text](https://github.com/iconnect/regex/milestone/22) - [X] 2018-12-14 v1.0.1.4 [Fix for GHC 8.4.4, GHC-8.6.2](https://github.com/iconnect/regex/milestone/23)-- [X] 2018-12-18 v1.0.1.5 [TDFA quasi quoters not dealing with \n, etc.](https://github.com/iconnect/regex/milestone/24)+- [X] 2018-12-18 v1.0.1.5 [TDFA quasi quoters not dealing with newlines](https://github.com/iconnect/regex/milestone/24)+- [X] 2018-12-19 v1.0.2.0 [Tidy build issues](https://github.com/iconnect/regex/milestone/25) See the [Roadmap page](http://roadmap.regex.uk) for details.
Text/RE/ZeInternals/Replace.lhs view
@@ -43,7 +43,7 @@ import Data.Functor.Identity import qualified Data.HashMap.Strict as HM import Data.Maybe-import Data.Monoid+import qualified Data.Monoid as M import qualified Data.Sequence as S import qualified Data.Text as T import qualified Data.Text.Encoding as TE@@ -397,10 +397,10 @@ textifyR = T.pack . unpackR detextifyR = packR . T.unpack- appendNewlineR = (<> packR "\n")+ appendNewlineR = (M.<> packR "\n") substR f m@Capture{..} =- capturePrefix m <> f capturedText <> captureSuffix m+ capturePrefix m M.<> f capturedText M.<> captureSuffix m \end{code} \begin{code}@@ -434,7 +434,7 @@ detextifyR = T.unpack linesR = lines unlinesR = unlines- appendNewlineR = (<>"\n")+ appendNewlineR = (M.<>"\n") parseTemplateR = parseTemplateR' id instance Replace B.ByteString where@@ -445,7 +445,7 @@ detextifyR = TE.encodeUtf8 linesR = B.lines unlinesR = B.unlines- appendNewlineR = (<>"\n")+ appendNewlineR = (M.<>"\n") parseTemplateR = parseTemplateR' B.unpack instance Replace LBS.ByteString where@@ -456,7 +456,7 @@ linesR = LBS.lines unlinesR = LBS.unlines detextifyR = LBS.fromStrict . TE.encodeUtf8- appendNewlineR = (<>"\n")+ appendNewlineR = (M.<>"\n") parseTemplateR = parseTemplateR' LBS.unpack instance Replace (S.Seq Char) where@@ -475,7 +475,7 @@ detextifyR = id linesR = T.lines unlinesR = T.unlines- appendNewlineR = (<>"\n")+ appendNewlineR = (M.<>"\n") parseTemplateR = parseTemplateR' T.unpack instance Replace LT.Text where@@ -486,7 +486,7 @@ detextifyR = LT.fromStrict linesR = LT.lines unlinesR = LT.unlines- appendNewlineR = (<>"\n")+ appendNewlineR = (M.<>"\n") parseTemplateR = parseTemplateR' LT.unpack \end{code}
changelog view
@@ -1,7 +1,12 @@ -*-change-log-*- +1.0.2.0 Chris Dornan <chris.dornan@irisconnect.co.uk> 2018-12-19+ * cabal-install build with 8.0 and 8.2 failing (#163)+ * Switch to GHC-8.6.3/nightly-2018-12-19 (#164)+ * Switch from Default-Extensions to Other-Extensions (#165)+ 1.0.1.5 Chris Dornan <chris.dornan@irisconnect.co.uk> 2018-12-18- * TDFA quasi quoters not dealing with \n, etc. (#157)+ * TDFA quasi quoters not dealing with newlines (#157) 1.0.1.4 Chris Dornan <chris.dornan@irisconnect.co.uk> 2018-12-14 * GHC-8.4.4, GHC-8.6.2 (#160)
regex.cabal view
@@ -1,5 +1,5 @@ Name: regex-Version: 1.0.1.5+Version: 1.0.2.0 Synopsis: Toolkit for regex-base Description: A regular expression toolkit for regex-base with compile-time checking of RE syntax, data types for@@ -32,7 +32,7 @@ Source-Repository this Type: git Location: https://github.com/iconnect/regex.git- Tag: 1.0.1.5+ Tag: 1.0.2.0