Encode immediately in hPutStr and hPutChar
authorSimon Marlow <marlowsd@gmail.com>
Thu, 25 Nov 2010 10:25:20 +0000 (10:25 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Thu, 25 Nov 2010 10:25:20 +0000 (10:25 +0000)
This means that decoding errors will be detected accurately, and can
be caught and handled.  Overall the implementation is simpler this way
too.

It does impose a performance hit on small hPutStrs, although larger
hPutStrs seem to be unaffected.  To compensate somewhat, I optimised
hPutStrLn.


No differences found