Abstract out the hFlush calls in the GHC API
authorIan Lynagh <igloo@earth.li>
Fri, 24 Feb 2012 22:49:14 +0000 (22:49 +0000)
committerIan Lynagh <igloo@earth.li>
Fri, 24 Feb 2012 22:49:14 +0000 (22:49 +0000)
commit4c5464f903534fd70d68c5370bf8b6ff528d3fd0
tree4a7b35b9f239487c8e9b8455a2a3886ae99c8c09
parent778ca5de01f1f6622101317eed0d5befcfba0c46
Abstract out the hFlush calls in the GHC API

stdout/stderr might be closed, so we can't just hFlush them.
So we instead allow configuration in the same way that log_action
is configurable.
compiler/main/DynFlags.hs
compiler/main/GHC.hs
compiler/main/SysTools.lhs
ghc/Main.hs
utils/ghctags/Main.hs