\begin{code} module ErrUtils where import Outputable (SDoc) import SrcLoc (SrcSpan) data Severity = SevOutput | SevDump | SevInteractive | SevInfo | SevWarning | SevError | SevFatal type MsgDoc = SDoc mkLocMessage :: Severity -> SrcSpan -> MsgDoc -> MsgDoc \end{code}