[Haskell-cafe] Pretty Print, text or ++?
John Van Enk
vanenkj at gmail.com
Fri Aug 15 09:31:46 EDT 2008
Something tells me you might want to look at `concat':
concat :: [[a]] -> [a]
2008/8/15 Paul Keir <pkeir at 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)
> text a <+> text b <+> text c <+> text d
> runs quicker?
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe