[Haskell-cafe] Re: src/Text/XML/HaXml/Lex.hs:(156, 0)-(160,
22): Non-exhaustive patterns in function white
Malcolm Wallace
malcolm.wallace at me.com
Fri Jul 23 06:23:45 EDT 2010
> Calls which successfully returned some binary data before do not do so
> anymore. The error is:
> Prelude.chr: bad argument: 1177427
I can't help with this one. As Gracjan noted, it is probably because
your binary data is not valid as UTF-8 text.
> Calls which complained about 'white' function now fail with:
> precondition not satisfied: Posn.white c | isSpace c
But this one, although likely another symptom of the same binary
problem, I have fixed in the darcs repo for HaXml. (Basically, the
'white' function was only permitting ASCII whitespace - I have now
extended it to allow for Unicode whitespace characters also.)
Regards,
Malcolm
More information about the Haskell-Cafe
mailing list