Re: ANN: regex-tdfa-1.1.0

2009-03-22 Thread Jean-Philippe Bernardy
On Sun, Mar 22, 2009 at 4:31 PM, Chris Kuklewicz wrote: > > I have now released regex-tdfa version 1.1.1 (with GNU anchors! bug > fixes!) This is neat, and very fast response :) > And more interestingly I have release a new package: regex-tdfa.utf8 > > http://hackage.haskell.org/cgi-bin/hackag

Re: ANN: regex-tdfa-1.1.0

2009-03-22 Thread Chris Kuklewicz
I have now released regex-tdfa version 1.1.1 (with GNU anchors! bug fixes!) And more interestingly I have release a new package: regex-tdfa.utf8 http://hackage.haskell.org/cgi-bin/hackage-scripts/package/regex-tdfa-utf8 This uses the utf8 decoding in the utf8-string package and a new "Utf8" new

Re: ANN: regex-tdfa-1.1.0

2009-03-20 Thread Chris Kuklewicz
>From hackage, I suspect you use use >http://hackage.haskell.org/cgi-bin/hackage-scripts/package/utf8-string for the utf8 translation? To get this working with regex-tdfa I need only one very small thing. You have to wrap the Lazy ByteString in a newtype so the instance can be different. In fa

Re: ANN: regex-tdfa-1.1.0

2009-03-20 Thread Jean-Philippe Bernardy
I'm using the lazy ByteString representation to match against, so it's no surprise that it fails. On Fri, Mar 20, 2009 at 11:41 AM, Chris Kuklewicz wrote: > With [Char] and (Seq Char) the text is full unicode. > > With ByteString and ByteString.Lazy you are really using > ByteString.Char8 and B

Re: ANN: regex-tdfa-1.1.0

2009-03-20 Thread Chris Kuklewicz
With [Char] and (Seq Char) the text is full unicode. With ByteString and ByteString.Lazy you are really using ByteString.Char8 and ByteString.Lazy.Char8 Here is a test (I saved the source file in utf8): import Text.Regex.TDFA text = "☮☯♲☢☣☠☃" regex = "(☢|☣)" search :: [[String]] search = text =

Re: ANN: regex-tdfa-1.1.0

2009-03-20 Thread Jean-Philippe Bernardy
Am I right that this library does not support unicode in regexes? Searching for unicode strings in Yi does not work, but ny cursory browsing of the code, I cannot find the reason why. Thanks, JP. On Wed, Mar 18, 2009 at 1:23 PM, ChrisK wrote: > I have just uploaded the new regex-tdfa-1.1.0 to h