Paul,

Something tells me you might want to look at `concat':

concat :: [[a]] -> [a]

/jve


2008/8/15 Paul Keir <pkeir@dcs.gla.ac.uk>

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?

Cheers,
Paul


_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe




--
/jve