packages feed

regex-tdfa-text 1.0.0.2 → 1.0.0.3

raw patch · 2 files changed

+32/−31 lines, 2 filesdep ~basenew-uploader

Dependency ranges changed: base

Files

Text/Regex/TDFA/Text/Lazy.hs view
@@ -1,4 +1,4 @@-{-| +{-| Module      :  Text.Regex.TDFA.Text.Lazy Copyright   :  Chris Kuklewicz 2007-2009, shelarcy 2012 License     :  BSD-style (see the file LICENSE)@@ -9,7 +9,7 @@  This modules provides 'RegexMaker' and 'RegexLike' instances for using 'Text' with the TDFA backend ("Text.Regex.TDFA.NewDFA.Engine" and-"Text.Regex.TDFA.NewDFA.Tester"). +"Text.Regex.TDFA.NewDFA.Tester").  This exports instances of the high level API and the medium level API of 'compile','execute', and 'regexec'.@@ -23,7 +23,7 @@  ,regexec  ) where -import Data.Array.IArray((!),elems,amap)+import Data.Array.IArray(Array,(!),elems,amap) import qualified Data.Text.Lazy as L(Text,empty,take,drop,uncons,unpack)  import Text.Regex.Base(MatchArray,RegexContext(..),Extract(..),RegexMaker(..),RegexLike(..))@@ -74,7 +74,8 @@                ,after (o+l) source))          (matchOnce regex source)   matchAllText regex source =-    let go i _ _ | i `seq` False = undefined+    let go :: Int -> L.Text -> [Array Int (Int, Int)] -> [Array Int (L.Text, (Int, Int))]+        go i _ _ | i `seq` False = undefined         go _i _t [] = []         go i t (x:xs) =           let (off0,len0) = x!0
regex-tdfa-text.cabal view
@@ -1,27 +1,27 @@-name:                regex-tdfa-text-Cabal-Version:       >= 1.6-version:             1.0.0.2-synopsis:            Text interface for regex-tdfa-description:         This provides text interface for regex-tdfa.-                     .-                     This should be part of regex-tdfa package. But my patches are not accepted yet. -                     So, I made a separate package. If you are interested in my patches, see-                     <http://hub.darcs.net/shelarcy/regex-base> and <http://hub.darcs.net/shelarcy/regex-tdfa>.-category:            Text-license:             BSD3-license-file:        LICENSE-author:              Chris Kuklewicz 2007-2009, shelarcy 2012-maintainer:          shelarcy <shelarcy@gmail.com>-build-type:          Simple--source-repository head-   type: darcs-   location: http://hub.darcs.net/shelarcy/regex-tdfa-text--library-  Build-Depends:     base >= 3 && < 5,array,text,regex-base,regex-tdfa >= 1.1.1-  Exposed-Modules:   Text.Regex.TDFA.Text-                     Text.Regex.TDFA.Text.Lazy-  Buildable:         True-  Extensions:        MultiParamTypeClasses-  Ghc-Options:       -O2+name:                regex-tdfa-text
+Cabal-Version:       >= 1.6
+version:             1.0.0.3
+synopsis:            Text interface for regex-tdfa
+description:         This provides text interface for regex-tdfa.
+                     .
+                     This should be part of regex-tdfa package. But my patches are not accepted yet.
+                     So, I made a separate package. If you are interested in my patches, see
+                     <http://hub.darcs.net/shelarcy/regex-base> and <http://hub.darcs.net/shelarcy/regex-tdfa>.
+category:            Text
+license:             BSD3
+license-file:        LICENSE
+author:              Chris Kuklewicz 2007-2009, shelarcy 2012
+maintainer:          shelarcy <shelarcy@gmail.com>
+build-type:          Simple
+
+source-repository head
+   type: darcs
+   location: http://hub.darcs.net/shelarcy/regex-tdfa-text
+
+library
+  Build-Depends:     base >= 3 && < 5,array,text,regex-base,regex-tdfa >= 1.1.1
+  Exposed-Modules:   Text.Regex.TDFA.Text
+                     Text.Regex.TDFA.Text.Lazy
+  Buildable:         True
+  Extensions:        MultiParamTypeClasses
+  Ghc-Options:       -O2