[Haskell-cafe] Re: strange ghc program behaviour

2006-03-22 Thread Koen . Roelandt
>From ghc-6.4, the runtime system no longer flushes open files; it >truncates them instead. You should close (or flush) the file explicitly >with 'hClose' or 'hFlush' before the program terminates. I added 'hClose' to processXmlWith in the Wrapper module. That solved the problem. Thank you! Mal

[Haskell-cafe] Re: strange ghc program behaviour

2006-03-21 Thread Christian Maeder
I remember that we had problems with HaXml producing empty or truncated files, too. I think with ghc-6.4.1 and HaXml-1.13 this problem was solved. (The deprecated stuff is definitely not the cause). The problem must have been related to the output handle being either stdout or a file (and ma