ghc-7.4.2: The GHC API

Safe HaskellNone

ErrUtils

Synopsis

Documentation

type Message = SDoc

data ErrMsg

Instances

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

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

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

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