[Haskell-cafe] Indenting with PPrint

Joel Reymont joelr1 at gmail.com
Mon May 7 17:38:19 EDT 2007


Folks,

Are you using UU.PPrint [1]? Can you tell me how to print stuff like  
this?

{
      blah
      blah
}

I tried the following which sort of works but doesn't return the  
closing brace to the indentation level of the first one.

braces x = PP.braces $ linebreak <> indent 4 x

	Thanks, Joel

[1] http://tinyurl.com/25t6xz

--
http://wagerlabs.com/







More information about the Haskell-Cafe mailing list