[Haskell-cafe] suggestion for hslogger
duncan.coutts at googlemail.com
Wed Sep 30 07:11:23 EDT 2009
On Tue, 2009-09-29 at 14:31 -0400, Sean McLaughlin wrote:
> I have a program that does a lot of unicode manipulation. I'd like
> to use hslogger to log various operations.
> However, since hslogger uses System.IO.putX, the unicode comes out
> mangled. I hacked the source to
> use System.IO.UTF8 instead, but it would be nice if that was an option
> so I don't have to rehack the code
> whenever there is a new release.
Note that this will "Just Work"tm in ghc-6.12. By default the System.IO
functions will use the locale encoding and convert to/from the Unicode
More information about the Haskell-Cafe