ghc-6.12.3: The GHC APISource codeContentsIndex
ErrUtils
Synopsis
type Message = SDoc
mkLocMessage :: SrcSpan -> Message -> Message
printError :: SrcSpan -> Message -> IO ()
data Severity
= SevInfo
| SevWarning
| SevError
| SevFatal
data ErrMsg
type WarnMsg = ErrMsg
type ErrorMessages = Bag ErrMsg
type WarningMessages = Bag WarnMsg
errMsgSpans :: ErrMsg -> [SrcSpan]
errMsgContext :: ErrMsg -> PrintUnqualified
errMsgShortDoc :: ErrMsg -> Message
errMsgExtraInfo :: ErrMsg -> Message
type Messages = (Bag WarnMsg, Bag ErrMsg)
errorsFound :: DynFlags -> Messages -> Bool
emptyMessages :: Messages
mkErrMsg :: SrcSpan -> PrintUnqualified -> Message -> ErrMsg
mkPlainErrMsg :: SrcSpan -> Message -> ErrMsg
mkLongErrMsg :: SrcSpan -> PrintUnqualified -> Message -> Message -> ErrMsg
mkWarnMsg :: SrcSpan -> PrintUnqualified -> Message -> WarnMsg
mkPlainWarnMsg :: SrcSpan -> Message -> ErrMsg
printErrorsAndWarnings :: DynFlags -> Messages -> IO ()
printBagOfErrors :: DynFlags -> Bag ErrMsg -> IO ()
printBagOfWarnings :: DynFlags -> Bag ErrMsg -> IO ()
warnIsErrorMsg :: ErrMsg
mkLongWarnMsg :: SrcSpan -> PrintUnqualified -> Message -> Message -> ErrMsg
ghcExit :: DynFlags -> Int -> IO ()
doIfSet :: Bool -> IO () -> IO ()
doIfSet_dyn :: DynFlags -> DynFlag -> IO () -> IO ()
dumpIfSet :: Bool -> String -> SDoc -> IO ()
dumpIf_core :: Bool -> DynFlags -> DynFlag -> String -> SDoc -> IO ()
dumpIfSet_core :: DynFlags -> DynFlag -> String -> SDoc -> IO ()
dumpIfSet_dyn :: DynFlags -> DynFlag -> String -> SDoc -> IO ()
dumpIfSet_dyn_or :: DynFlags -> [DynFlag] -> String -> SDoc -> IO ()
mkDumpDoc :: String -> SDoc -> SDoc
dumpSDoc :: DynFlags -> DynFlag -> String -> SDoc -> IO ()
putMsg :: DynFlags -> Message -> IO ()
errorMsg :: DynFlags -> Message -> IO ()
fatalErrorMsg :: DynFlags -> Message -> IO ()
compilationProgressMsg :: DynFlags -> String -> IO ()
showPass :: DynFlags -> String -> IO ()
debugTraceMsg :: DynFlags -> Int -> Message -> IO ()
Documentation
type Message = SDocSource
mkLocMessage :: SrcSpan -> Message -> MessageSource
printError :: SrcSpan -> Message -> IO ()Source
data Severity Source
Constructors
SevInfo
SevWarning
SevError
SevFatal
data ErrMsg Source
show/hide Instances
type WarnMsg = ErrMsgSource
type ErrorMessages = Bag ErrMsgSource
type WarningMessages = Bag WarnMsgSource
errMsgSpans :: ErrMsg -> [SrcSpan]Source
errMsgContext :: ErrMsg -> PrintUnqualifiedSource
errMsgShortDoc :: ErrMsg -> MessageSource
errMsgExtraInfo :: ErrMsg -> MessageSource
type Messages = (Bag WarnMsg, Bag ErrMsg)Source
errorsFound :: DynFlags -> Messages -> BoolSource
emptyMessages :: MessagesSource
mkErrMsg :: SrcSpan -> PrintUnqualified -> Message -> ErrMsgSource
mkPlainErrMsg :: SrcSpan -> Message -> ErrMsgSource
mkLongErrMsg :: SrcSpan -> PrintUnqualified -> Message -> Message -> ErrMsgSource
mkWarnMsg :: SrcSpan -> PrintUnqualified -> Message -> WarnMsgSource
mkPlainWarnMsg :: SrcSpan -> Message -> ErrMsgSource
printErrorsAndWarnings :: DynFlags -> Messages -> IO ()Source
printBagOfErrors :: DynFlags -> Bag ErrMsg -> IO ()Source
printBagOfWarnings :: DynFlags -> Bag ErrMsg -> IO ()Source
warnIsErrorMsg :: ErrMsgSource
mkLongWarnMsg :: SrcSpan -> PrintUnqualified -> Message -> Message -> ErrMsgSource
ghcExit :: DynFlags -> Int -> IO ()Source
doIfSet :: Bool -> IO () -> IO ()Source
doIfSet_dyn :: DynFlags -> DynFlag -> IO () -> IO ()Source
dumpIfSet :: Bool -> String -> SDoc -> IO ()Source
dumpIf_core :: Bool -> DynFlags -> DynFlag -> String -> SDoc -> IO ()Source
dumpIfSet_core :: DynFlags -> DynFlag -> String -> SDoc -> IO ()Source
dumpIfSet_dyn :: DynFlags -> DynFlag -> String -> SDoc -> IO ()Source
dumpIfSet_dyn_or :: DynFlags -> [DynFlag] -> String -> SDoc -> IO ()Source
mkDumpDoc :: String -> SDoc -> SDocSource
dumpSDoc :: DynFlags -> DynFlag -> String -> SDoc -> IO ()Source
Write out a dump. If --dump-to-file is set then this goes to a file. otherwise emit to stdout.
putMsg :: DynFlags -> Message -> IO ()Source
errorMsg :: DynFlags -> Message -> IO ()Source
fatalErrorMsg :: DynFlags -> Message -> IO ()Source
compilationProgressMsg :: DynFlags -> String -> IO ()Source
showPass :: DynFlags -> String -> IO ()Source
debugTraceMsg :: DynFlags -> Int -> Message -> IO ()Source
Produced by Haddock version 2.6.1