[Haskell-cafe] ghc 6.12.1 and regex

Paulo Tanimoto tanimoto at arizona.edu
Tue Dec 29 13:31:11 EST 2009


Oh, I forgot to "reply-to-all".

---------- Forwarded message ----------
From: Paulo Tanimoto <tanimoto at arizona.edu>
Date: Tue, Dec 29, 2009 at 9:39 AM
Subject: Re: [Haskell-cafe] ghc 6.12.1 and regex
To: David Fox <ddssff at gmail.com>


Hi David,

On Tue, Dec 29, 2009 at 9:28 AM, David Fox <ddssff at gmail.com> wrote:
> Is anyone else seeing this problem:
>
>> :m +Text.Regex.Posix
>> "\250" =~ "\250" :: Bool
> True
>> "\250" =~ "[\250]" :: Bool
> False

I also get that on GHC 6.10.4.  On the other hand:

$ cabal update
$ cabal install regex-tdfa
$ ghci
> :m +Text.Regex.TDFA
> "\250" =~ "\250" :: Bool
True
> "\250" =~ "[\250]" :: Bool
True

But the author says it's not fully Posix yet:
http://hackage.haskell.org/package/regex-tdfa

Paulo


More information about the Haskell-Cafe mailing list