regex library misbehaviour

Ross Paterson ross@soi.city.ac.uk
Tue, 26 Aug 2003 21:26:01 +0100


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.