ghc-7.6.3: The GHC API

Safe HaskellNone

ErrUtils

Synopsis

Documentation

data ErrMsg

Instances

type MsgDoc = SDoc

ghcExit :: DynFlags -> Int -> IO ()

doIfSet :: Bool -> IO () -> IO ()

doIfSet_dyn :: DynFlags -> DynFlag -> IO () -> IO ()

dumpIfSet :: DynFlags -> Bool -> String -> SDoc -> IO ()

dumpSDoc :: DynFlags -> DynFlag -> String -> SDoc -> IO ()

Write out a dump. If --dump-to-file is set then this goes to a file. otherwise emit to stdout.

When hdr is empty, we print in a more compact format (no separators and blank lines)

putMsg :: DynFlags -> MsgDoc -> IO ()