ghc-7.8.20140130: The GHC API

Safe HaskellNone
LanguageHaskell98

ErrUtils

Synopsis

Documentation

data ErrMsgSource

Instances

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

dumpSDoc :: DynFlags -> DumpFlag -> String -> SDoc -> IO ()Source

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)