I got a programm in haskell outputting utf-8 using the package utf8-string
and using only the output functions of this package.
I set the encoding of each file I write to this way :
hSetEncoding myFile utf8
{- myFile may be stdout -}
but when I try to output :
alpha = [toEnum 0x03B1] {- α -}
instead of the nice alpha letter I got on Linux (or in a file on windows), I got the following :
α
The weird thing is even if I try to write the output on a file, I can't read it back with mvim as an utf-8 file. Is there any way to get the correct behaviour