The XmlSource instances for lazy and strict bytestrings are incorrect when applied to bytestrings representing something other than ASCII. For example:
> uncons (UTF8.fromString "€")
Just ('\226',"\130\172")
This would probably be a lot better by using something like utf8-string or going through Text. That will be better than what it is now, even though it doesn't work for other encodings.
The
XmlSourceinstances for lazy and strict bytestrings are incorrect when applied to bytestrings representing something other than ASCII. For example:This would probably be a lot better by using something like
utf8-stringor going throughText. That will be better than what it is now, even though it doesn't work for other encodings.