RE: [Haskell] writeFile for a looong string

2005-07-14 Thread Simon Marlow
On 14 July 2005 10:08, Johannes Waldmann wrote: > I am writing a long string (several MByte) to a file, > with writeFile fname ( render d ) > where d :: Text.PrettyPrint.HughesPJ.Doc > > I wonder what happens internally > (when compiled with ghc -O, if that matters) > Will the string be in memo

Re: [Haskell] writeFile for a looong string

2005-07-14 Thread Christian Maeder
Hi, maybe try using fullRender with defaults (mode=PageMode, lineLength=100, ribbonsPerLine=1.5) and "a" instantiated to "IO()" so that TextDetails can be appended to a file (handle). HTH Christian Johannes Waldmann wrote: > Dear all, > > I am writing a long string (several MByte) to a file, >