projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
792671a
)
Add aliases for bags of warnings and errors.
author
Thomas Schilling
<nominolo@googlemail.com>
Sun, 14 Sep 2008 16:03:37 +0000
(16:03 +0000)
committer
Thomas Schilling
<nominolo@googlemail.com>
Sun, 14 Sep 2008 16:03:37 +0000
(16:03 +0000)
compiler/main/ErrUtils.lhs
patch
|
blob
|
history
diff --git
a/compiler/main/ErrUtils.lhs
b/compiler/main/ErrUtils.lhs
index
a030a19
..
bc5908f
100644
(file)
--- a/
compiler/main/ErrUtils.lhs
+++ b/
compiler/main/ErrUtils.lhs
@@
-9,6
+9,7
@@
module ErrUtils (
Severity(..),
ErrMsg, WarnMsg, throwErrMsg, handleErrMsg,
+ ErrorMessages, WarningMessages,
errMsgSpans, errMsgContext, errMsgShortDoc, errMsgExtraInfo,
Messages, errorsFound, emptyMessages,
mkErrMsg, mkPlainErrMsg, mkLongErrMsg, mkWarnMsg, mkPlainWarnMsg,
@@
-137,6
+138,9
@@
mkPlainWarnMsg locn msg = mkWarnMsg locn alwaysQualify msg
type Messages = (Bag WarnMsg, Bag ErrMsg)
+type WarningMessages = Bag WarnMsg
+type ErrorMessages = Bag ErrMsg
+
emptyMessages :: Messages
emptyMessages = (emptyBag, emptyBag)