[Haskell-cafe] RE: Haskell-Cafe Digest, Vol 21, Issue 31

Bayley, Alistair Alistair_Bayley at ldn.invesco.com
Tue May 17 10:10:27 EDT 2005


> From: Atwood, John Wesley [mailto:john.atwood at hp.com] 
> 
> Under my Linux install, with ghc6.4, it doesn't throw an 
> exception, but
> also doesn't return a correct result;
> it returns Just [].  Under WindowsXP, ghc6.4, I get the exception you
> get; under hugs, it can't find subRegex, but
> matchRegex returns Just [].  What does seem to work is
>   > import Text.Regex.Posix
>   > 
>   > p1 = do
>   >  r <- regcomp "\\." 0
>   >  b <- regexec r "foo.bar"
>   >  putStr (show b)
> 
> why it's in the IO monad, I don't know.
> Where would I find the source? I browsed the ghc cvs at 
> haskell.org, but
> can't find Text.Regex.
> 
> 
> John


http://cvs.haskell.org/cgi-bin/cvsweb.cgi/fptools/libraries/base/Text/Regex.
hs?rev=1.15

-----------------------------------------
*****************************************************************
Confidentiality Note: The information contained in this   message, and any
attachments, may contain confidential   and/or privileged material. It is
intended solely for the   person(s) or entity to which it is addressed. Any
review,   retransmission, dissemination, or taking of any action in
reliance upon this information by persons or entities other   than the
intended recipient(s) is prohibited. If you received  this in error, please
contact the sender and delete the   material from any computer.
*****************************************************************



More information about the Haskell-Cafe mailing list