[Haskell] problems with RegEx
Brian Smith
brianlsmith at gmail.com
Wed Aug 3 02:01:17 EDT 2005
* GHC(i) has included Text.Regex in its Windows builds since at least 6.2.2
* The version of Hugs in CVS contains Text.Regex in the Windows build:
Hugs.Base> :v
-- Hugs Version 20050731
Hugs.Base> :l Text.Regex
Text.Regex> let a = mkRegexWithOpts "(.*a$)" True True
in matchRegex a (unlines ["asdf","fdsa"])
Just ["fdsa"]
- Brian
On 8/2/05, Srinivas Nedunuri <nedunuri at cs.utexas.edu> wrote:
> hi, thanks for the info. I found a package that implements RegEx on windows
> so I'll try that out
>
> ----- Original Message -----
> From: "Bernard Pope" <bjpop at cs.mu.OZ.AU>
> To: "Srinivas Nedunuri" <nedunuri at cs.utexas.edu>
> Cc: <haskell at haskell.org>
> Sent: Wednesday, July 27, 2005 10:07 PM
> Subject: Re: [Haskell] problems with RegEx
>
>
> > On Wed, 2005-07-27 at 21:26 -0500, Srinivas Nedunuri wrote:
> > > hello, I'm trying to use the Text.Regex library from Hugs. However,
> > > Hugs doesn't recognize any of the methods in there. For example if I
> > > try to use the mkRegex function I get the error message "Undefined
> > > variable "mkRegex". I have imported Text.Regex into the module. I
> > > looked at the contents of the module in the HUGS library but couldnt
> > > make out too much. It looked basically empty although Text.Regex.Posix
> > > had some includes. Any help would be appreciated
> > >
> > > cheers
> >
> > Text.Regex is non portable, it only works when your system has a regex
> > library installed, Posix I believe.
> > It may be the case that your system is not supported. What platform are
> > you using, and which version of Hugs?
> >
> > It works on my machine which is ubuntu linux hoary, with hugs November
> > 2003.
> >
> > Bernie.
>
> _______________________________________________
> Haskell mailing list
> Haskell at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell
>
More information about the Haskell
mailing list