Pass DynFlags to the LogAction
authorIan Lynagh <igloo@earth.li>
Mon, 11 Jun 2012 19:58:33 +0000 (20:58 +0100)
committerIan Lynagh <igloo@earth.li>
Mon, 11 Jun 2012 19:58:33 +0000 (20:58 +0100)
commit5716a2f849a53c48f6171101fed7a473107f0756
tree4976930751c8ce9ea1dad166cce126ce282ab8b8
parent65152943e6fe80dc5314e897dbf910137b01c47b
Pass DynFlags to the LogAction

A side-effect is that we can no longer use the LogAction in
defaultErrorHandler, as we don't have DynFlags at that point.
But all that defaultErrorHandler did is to print Strings as
SevFatal, so now it takes a 'FatalMessager' instead.
18 files changed:
compiler/deSugar/Coverage.lhs
compiler/ghci/Debugger.hs
compiler/ghci/Linker.lhs
compiler/iface/BinIface.hs
compiler/iface/LoadIface.lhs
compiler/main/CodeOutput.lhs
compiler/main/DriverPipeline.hs
compiler/main/DynFlags.hs
compiler/main/ErrUtils.lhs
compiler/main/GHC.hs
compiler/main/SysTools.lhs
compiler/main/TidyPgm.lhs
compiler/simplCore/CoreMonad.lhs
compiler/simplCore/SimplCore.lhs
compiler/simplStg/SimplStg.lhs
compiler/typecheck/TcRnMonad.lhs
ghc/Main.hs
utils/ghctags/Main.hs