[Haskell-cafe] strange ghc program behaviour

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Tue Mar 21 10:25:50 EST 2006

Koen.Roelandt at mineco.fgov.be wrote:

> E.g. An xml file of 12.3k will result in a file of 8k and will stop at
> 8k An xml file of 15.7k will result in a file of 16k
> An xml file of 36k will result in a file of 24k

>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.


More information about the Haskell-Cafe mailing list