Re: [Haskell-cafe] How to pretty print code efficiently

2009-07-05 Thread Chris Eidhof
On 4 jul 2009, at 05:13, Alexander Dunlap wrote: On Fri, Jul 3, 2009 at 6:45 PM, John Kynewho...@gmail.com wrote: Hi, Currently I'm pretty printing code by building arrays of strings and calling indent. For example: instance JavaPrintableNamed AST.EnumeratedType where javaLinesNamed

Re: [Haskell-cafe] How to pretty print code efficiently

2009-07-05 Thread John Ky
Hi all, Thanks everyone for the help. The HughesPJ module works well for me. Cheers, -John On Mon, Jul 6, 2009 at 3:49 AM, Chris Eidhof ch...@eidhof.nl wrote: On 4 jul 2009, at 05:13, Alexander Dunlap wrote: On Fri, Jul 3, 2009 at 6:45 PM, John Kynewho...@gmail.com wrote: Hi,

[Haskell-cafe] How to pretty print code efficiently

2009-07-03 Thread John Ky
Hi, Currently I'm pretty printing code by building arrays of strings and calling indent. For example: instance JavaPrintableNamed AST.EnumeratedType where javaLinesNamed parentName (AST.EnumeratedType memberDefinitions) = [ public enum ++ asJavaId(parentName) , { ] ++

Re: [Haskell-cafe] How to pretty print code efficiently

2009-07-03 Thread Alexander Dunlap
On Fri, Jul 3, 2009 at 6:45 PM, John Kynewho...@gmail.com wrote: Hi, Currently I'm pretty printing code by building arrays of strings and calling indent.  For example: instance JavaPrintableNamed AST.EnumeratedType where    javaLinesNamed parentName (AST.EnumeratedType memberDefinitions) =