Text.PrettyPrint.HughesPJ inserting blank lines
simonpj at microsoft.com
Fri Jan 28 03:30:21 EST 2005
I use (text ""), but I grant it's a bit of a hack.
| -----Original Message-----
| From: libraries-bounces at haskell.org
[mailto:libraries-bounces at haskell.org] On Behalf Of Iavor
| Sent: 27 January 2005 18:13
| To: Christian Maeder
| Cc: libraries at haskell.org
| Subject: Re: Text.PrettyPrint.HughesPJ inserting blank lines
| Nothing constructive here, I just like to second the suggestion,
| as I often need a vertical space document for things like:
| vcat (punctuate vspace lines)
| or is there already a way to do that?
| On Wed, 26 Jan 2005 19:51:27 +0100, Christian Maeder <maeder at tzi.de>
| > I've found myself using "$+$ space $+$" in order to insert a blank
| > between two docs.
| > There are probably other ways to do it. "(test "")" (and $$) instead
| > "space" (or $+$) also work in many cases (but not "empty"). Which
| > would be the best?
| > Maybe one could add a further function "$++$" to do this and a list
| > version "vsep" of "$++$"?
| > Another idea might be something like a vertical space "vspace" so
| > several blank lines would be created by: $$ vspace $$ vspace $$ ...
| > Cheers Christian
| > _______________________________________________
| > Libraries mailing list
| > Libraries at haskell.org
| > http://www.haskell.org/mailman/listinfo/libraries
| Libraries mailing list
| Libraries at haskell.org
More information about the Libraries