
23 Jan
2005
23 Jan
'05
8:03 a.m.
Cabal uses something like system "ghc --version >tmp" in order to determine the version of GHC. After the last changes in CVS the above line no longer produces the right result. The temporary file is created but it is empty. It seems like the stdout/stderr handles are flushed in GHC.TopHandler.runMainIO but only if the program terminates without exception. I tried to flush handles in the catch clause but this doesn't help. Any ideas? Cheers, Krasimir