<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Firstly, we have</div><div class=""><br class=""></div><div class="">  isPrint :: Char -> Bool</div><div class=""><br class=""></div><div class="">Are you saying that this type is wrong?</div><div class=""><br class=""></div><div class="">Secondly, how often do you feed the output of ’show’ to ’read’ in another locale versus how often is everybody whose whole life is outside of ASCII (i.e., not anglo-centric people) bothered by this shortcoming? (*)</div><div class=""><br class=""></div><div class="">Moreover, the argument on the ticket was that changing the current implementation would go against the standard. Now that I am saying, the current implementation is not conforming to the standard, the standard suddenly doesn’t seem to matter. Personally, I would say, when we wrote that standard, we knew what we were doing.</div><div class=""><br class=""></div><div class="">Manuel</div><div class=""><br class=""></div><div class="">(*) BTW, (read . show) is a pretty bad serialisation story anyway.</div><br class=""><div><blockquote type="cite" class=""><div class="">Brandon Allbery <<a href="mailto:allbery.b@gmail.com" class="">allbery.b@gmail.com</a>>:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote">On Wed, Mar 30, 2016 at 9:16 PM, Manuel M T Chakravarty <span dir="ltr" class=""><<a href="mailto:chak@justtesting.org" target="_blank" class="">chak@justtesting.org</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">Thank you for all the replies and especially pointing to this ticket.</div><div class=""><br class=""></div><div class="">I think, the discussion on this ticket is actually misleading and there is a simple solution, which I added as a comment.</div></blockquote></div><br class="">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.</div><div class="gmail_extra"><div class=""><br class=""></div>-- <br class=""><div class="gmail_signature"><div dir="ltr" class=""><div class="">brandon s allbery kf8nh                               sine nomine associates</div><div class=""><a href="mailto:allbery.b@gmail.com" target="_blank" class="">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank" class="">ballbery@sinenomine.net</a></div><div class="">unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net/" target="_blank" class="">http://sinenomine.net</a></div></div></div>
</div></div>
_______________________________________________<br class="">ghc-devs mailing list<br class=""><a href="mailto:ghc-devs@haskell.org" class="">ghc-devs@haskell.org</a><br class="">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs<br class=""></div></blockquote></div><br class=""></body></html>