ghc-7.10.0.20150316: The GHC API

Safe HaskellNone
LanguageHaskell2010

ErrUtils

Synopsis

Documentation

data ErrMsg Source

Instances

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

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

a wrapper around dumpSDoc. First check whether the dump flag is set Do nothing if it is unset

dumpIfSet_dyn_printer :: PrintUnqualified -> DynFlags -> DumpFlag -> SDoc -> IO () Source

a wrapper around dumpSDoc. First check whether the dump flag is set Do nothing if it is unset

Unlike dumpIfSet_dyn, has a printer argument but no header argument

dumpSDoc :: DynFlags -> PrintUnqualified -> 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)

The DumpFlag is used only to choose the filename to use if --dump-to-file is used; it is not used to decide whether to dump the output