RE: Text.PrettyPrint.HughesPJ inserting blank lines
I use (text ""), but I grant it's a bit of a hack. Simon | -----Original Message----- | From: libraries-bounces@haskell.org [mailto:libraries-bounces@haskell.org] On Behalf Of Iavor | Diatchki | Sent: 27 January 2005 18:13 | To: Christian Maeder | Cc: libraries@haskell.org | Subject: Re: Text.PrettyPrint.HughesPJ inserting blank lines | | Hi, | 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? | -Iavor | | | On Wed, 26 Jan 2005 19:51:27 +0100, Christian Maeder <maeder@tzi.de> wrote: | > I've found myself using "$+$ space $+$" in order to insert a blank line | > between two docs. | > | > There are probably other ways to do it. "(test "")" (and $$) instead of | > "space" (or $+$) also work in many cases (but not "empty"). Which way | > 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 that | > several blank lines would be created by: $$ vspace $$ vspace $$ ... | > | > Cheers Christian | > _______________________________________________ | > Libraries mailing list | > Libraries@haskell.org | > http://www.haskell.org/mailman/listinfo/libraries | > | _______________________________________________ | Libraries mailing list | Libraries@haskell.org | http://www.haskell.org/mailman/listinfo/libraries
participants (1)
-
Simon Peyton-Jones