regex library misbehaviour

Ferenc Wagner <[email protected]>
Newsgroups gmane.comp.lang.haskell.hugs.bugs
Message-ID <[email protected]>
Hello,

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).

System: Debian Woody
Hugs from the unstable source package (local build)

Best wishes,
Feri.
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.