[Haskell-cafe] Can we improve Show instance for non-ascii charcters?

Henk-Jan van Tuyl hjgtuyl at chello.nl
Wed Feb 3 10:47:06 UTC 2016


On Wed, 03 Feb 2016 02:37:57 +0100, Takayuki Muranushi  
<muranushi at gmail.com> wrote:

> Show instance for non-ascii characters prints their character codes.
> This is sad for Haskell users that speaks language other than English.
>
>> 'A'
> 'A'
>> 'Ä'
> '\196'
>> '漢'
> '\28450'

You could use wxHaskell to display the output of your program, as the  
attached image shows.

Regards,
Henk-Jan van Tuyl


-- 
Folding at home
What if you could share your unused computer power to help find a cure? In  
just 5 minutes you can join the world's biggest networked computer and get  
us closer sooner. Watch the video.
http://folding.stanford.edu/


http://Van.Tuyl.eu/
http://members.chello.nl/hjgtuyl/tourdemonad.html
Haskell programming
--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: HelloWorld.png
Type: image/png
Size: 3593 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20160203/a7c9650c/attachment.png>


More information about the Haskell-Cafe mailing list