[Haskell-cafe] GHC rendering of non-ASCII characters configurable?

Max Rabkin max.rabkin at gmail.com
Mon Jul 30 12:27:14 CEST 2012


On Sun, Jul 29, 2012 at 8:04 PM, Richard Cobbe <cobbe at ccs.neu.edu> wrote:
> This is annoying because all of the Unicode charts give the code points in
> hex, and indeed the charts are split into different PDFs at numbers that
> are nice and round in hex but not in decimal.  So in order to figure out
> which character I'm looking at, I have to convert back to hex and then look
> it up in the charts.

My reading of the Haskell 98 report is that the Show instance for Char
*could* use hex escapes, so this is a compiler choice. If there isn't
a good reason for this choice, perhaps GHC could change?

--Max



More information about the Haskell-Cafe mailing list