ghc-6.12.2: The GHC API
Source code
Contents
Index
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
=
SDoc
Source
mkLocMessage
::
SrcSpan
->
Message
->
Message
Source
printError
::
SrcSpan
->
Message
->
IO
()
Source
data
Severity
Source
Constructors
SevInfo
SevWarning
SevError
SevFatal
data
ErrMsg
Source
Instances
Show
ErrMsg
type
WarnMsg
=
ErrMsg
Source
type
ErrorMessages
=
Bag
ErrMsg
Source
type
WarningMessages
=
Bag
WarnMsg
Source
errMsgSpans
::
ErrMsg
-> [
SrcSpan
]
Source
errMsgContext
::
ErrMsg
->
PrintUnqualified
Source
errMsgShortDoc
::
ErrMsg
->
Message
Source
errMsgExtraInfo
::
ErrMsg
->
Message
Source
type
Messages
= (
Bag
WarnMsg
,
Bag
ErrMsg
)
Source
errorsFound
::
DynFlags
->
Messages
->
Bool
Source
emptyMessages
::
Messages
Source
mkErrMsg
::
SrcSpan
->
PrintUnqualified
->
Message
->
ErrMsg
Source
mkPlainErrMsg
::
SrcSpan
->
Message
->
ErrMsg
Source
mkLongErrMsg
::
SrcSpan
->
PrintUnqualified
->
Message
->
Message
->
ErrMsg
Source
mkWarnMsg
::
SrcSpan
->
PrintUnqualified
->
Message
->
WarnMsg
Source
mkPlainWarnMsg
::
SrcSpan
->
Message
->
ErrMsg
Source
printErrorsAndWarnings
::
DynFlags
->
Messages
->
IO
()
Source
printBagOfErrors
::
DynFlags
->
Bag
ErrMsg
->
IO
()
Source
printBagOfWarnings
::
DynFlags
->
Bag
ErrMsg
->
IO
()
Source
warnIsErrorMsg
::
ErrMsg
Source
mkLongWarnMsg
::
SrcSpan
->
PrintUnqualified
->
Message
->
Message
->
ErrMsg
Source
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
->
SDoc
Source
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