Re: regex library misbehaviour

Ross Paterson <[email protected]>
Newsgroups gmane.comp.lang.haskell.hugs.bugs
Message-ID <[email protected]>
On Tue, Aug 26, 2003 at 10:02:22PM +0200, Ferenc Wagner wrote:
> loading this:
> ---------------------8<--------------------
> import Text.Regex
> 
> re2 = mkRegexWithOpts "was" True True
> match = matchRegexAll re2 "this was wrong"
> ---------------------8<--------------------
> into hugs +N (November 2002) and evaluating match gives:
> 
> Main> match
> Just ("this","was"," wrong",[])
> 
> where a space is missing at the end of the first String.
> Seems like a one-off error (other characters disappear,
> too).

Thanks for the report.  This was a library bug, fixed last May by
Simon Marlow.  The next release will include the fix.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.