[Haskell-cafe] Re: Pretty Print, text or ++?

2008-08-15 Thread Christian Maeder
Paul Keir wrote: Hi there, I'm writing a pretty printer using the Text.PrettyPrint library, and there's a pattern I'm coming across quite often. Does anyone know whether, text (a ++ b ++ c ++ d) or text a + text b + text c + text d runs quicker? Don't worry about speed. Write it as:

[Haskell-cafe] Re: Pretty Print, text or ++?

2008-08-15 Thread Benedikt Huber
Paul Keir schrieb: Hi there, I'm writing a pretty printer using the Text.PrettyPrint library, and there's a pattern I'm coming across quite often. Does anyone know whether, text (a ++ b ++ c ++ d) or text a + text b + text c + text d runs quicker? Hi Paul, text (a ++ b ++ c ++ d)

[Haskell-cafe] RE: Pretty Print, text or ++?

2008-08-15 Thread Paul Keir
Awesome! Thanks to you all. I'll start with hsep[map a, b, c, d] and then I can try changing hsep for other things. Paul -Original Message- From: Benedikt Huber [mailto:[EMAIL PROTECTED] Sent: Fri 15/08/2008 14:53 To: Paul Keir Cc: haskell-cafe@haskell.org Subject: Re: Pretty Print,