Unicode, strings, and Show
allbery.b at gmail.com
Thu Mar 31 01:21:31 UTC 2016
On Wed, Mar 30, 2016 at 9:16 PM, Manuel M T Chakravarty <
chak at justtesting.org> wrote:
> Thank you for all the replies and especially pointing to this ticket.
> I think, the discussion on this ticket is actually misleading and there is
> a simple solution, which I added as a comment.
That is in fact not simple at all: with that, the ostensibly pure `show`
now depends on the user's locale and therefore should be in IO (and you
cannot reliably feed it to `read` in a program running in a different
locale)! This is why the ticket was concentrating on ghci, where it's at
least somewhat reasonable to assume a UTF8 environment.
brandon s allbery kf8nh sine nomine associates
allbery.b at gmail.com ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ghc-devs