regex-compat 0.71 → 0.71.0.1
raw patch · 4 files changed
+16/−9 lines, 4 filesdep ~basesetup-changedPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base
API changes (from Hackage documentation)
Files
- Setup.hs +0/−6
- Setup.lhs +11/−0
- Text/Regex.hs +2/−1
- regex-compat.cabal +3/−2
− Setup.hs
@@ -1,6 +0,0 @@-#!/usr/bin/env runhaskell---- I usually compile this with "ghc --make -o setup Setup.hs"--import Distribution.Simple(defaultMain)-main = defaultMain
+ Setup.lhs view
@@ -0,0 +1,11 @@+#!/usr/bin/env runhaskell++> -- I usually compile this with "ghc --make -o setup Setup.hs"++> module Main (main) where+>+> import Distribution.Simple+>+> main :: IO ()+> main = defaultMain+
Text/Regex.hs view
@@ -104,7 +104,8 @@ Just (lead, _, trail, bgroups) -> let newval = if (head bgroups) == "\\" then "\\"- else let index = (read (head bgroups)) - 1+ else let index :: Int+ index = (read (head bgroups)) - 1 in if index == -1 then match
regex-compat.cabal view
@@ -2,7 +2,7 @@ -- To fix for cabal < 1.1.4 comment out the Extra-Source-Files line -- **************************************************************** Name: regex-compat-Version: 0.71+Version: 0.71.0.1 -- Cabal-Version: >=1.1.4 License: BSD3 License-File: LICENSE@@ -15,8 +15,9 @@ Synopsis: Replaces/Enhances Text.Regex Description: One module layer over regex-posix to replace Text.Regex Category: Text+Build-Type: Simple Tested-With: GHC-Build-Depends: regex-base, regex-posix, base+Build-Depends: regex-base, regex-posix, base >= 2.0 -- Data-Files: -- Extra-Source-Files: Text/Regex/Lazy/TestCompat.hs, Text/Regex/Lazy/TestFull.hs, Text/Regex/Impl/TestContext.hs, TestTextRegexLazy.hs, Example.hs, Example2.hs, lazy.html, README, Makefile -- Extra-Tmp-Files: