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

2012-08-01 Thread Erik Hesselink
On Wed, Aug 1, 2012 at 2:35 AM, Richard Cobbe wrote: > Well, I initially went with String because I didn't want to clutter up my > code with all of the calls to 'pack', especially around string literals. > I'm open to being convinced that it's worth it to switch, though. For string literals, you

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

2012-07-31 Thread Richard Cobbe
On Tue, Jul 31, 2012 at 09:17:34PM +1000, Ivan Lazar Miljenovic wrote: > On 31 July 2012 21:01, Richard Cobbe wrote: > > On Mon, Jul 30, 2012 at 11:45:38PM +1000, Ivan Lazar Miljenovic wrote: > >> Can I ask what you're doing here? Are you printing individual > >> characters or entire chunks of te

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

2012-07-31 Thread Ivan Lazar Miljenovic
On 31 July 2012 21:01, Richard Cobbe wrote: > On Mon, Jul 30, 2012 at 11:45:38PM +1000, Ivan Lazar Miljenovic wrote: >> On 30 July 2012 04:04, Richard Cobbe wrote: >> > I'm working on an application that involves processing a lot of Unicode >> > data, and I'm finding the built-in Show implementat

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

2012-07-31 Thread Richard Cobbe
On Mon, Jul 30, 2012 at 11:45:38PM +1000, Ivan Lazar Miljenovic wrote: > On 30 July 2012 04:04, Richard Cobbe wrote: > > I'm working on an application that involves processing a lot of Unicode > > data, and I'm finding the built-in Show implementation for Char to be > > really inconvenient. Speci

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

2012-07-30 Thread Ivan Lazar Miljenovic
On 30 July 2012 04:04, Richard Cobbe wrote: > I'm working on an application that involves processing a lot of Unicode > data, and I'm finding the built-in Show implementation for Char to be > really inconvenient. Specifically, it renders all characters at U+0080 and > above with decimal escapes:

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

2012-07-30 Thread Max Rabkin
On Sun, Jul 29, 2012 at 8:04 PM, Richard Cobbe 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

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

2012-07-30 Thread Paolo Capriotti
On Sun, Jul 29, 2012 at 7:04 PM, Richard Cobbe wrote: > I'm working on an application that involves processing a lot of Unicode > data, and I'm finding the built-in Show implementation for Char to be > really inconvenient. Specifically, it renders all characters at U+0080 and > above with decimal

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

2012-07-29 Thread Richard Cobbe
I'm working on an application that involves processing a lot of Unicode data, and I'm finding the built-in Show implementation for Char to be really inconvenient. Specifically, it renders all characters at U+0080 and above with decimal escapes: Prelude> '\x80' '\128' This is annoying bec