2 % (c) The GRASP/AQUA Project, Glasgow University, 1992-1995
4 \section[Errors]{Error reporting}
6 This module now merely re-exports the work of @ErrsRn@ and @ErrsTc@;
7 this is the public interface. (WDP 94/06)
10 #include "HsVersions.h"
21 derivingNonStdClassErr,
25 duplicateImportsInInterfaceErr,
26 inlineInRecursiveBindsErr,
28 -- mismatchedPragmasErr, UNUSED
32 weirdImportExportConstraintErr,
34 -- typechecker errors:
45 derivingWhenInstanceExistsErr,
46 -- derivingNoSuperClassInstanceErr, UNUSED
48 -- extraMethodsErr, UNUSED
50 -- genPrimTyVarErr, UNUSED
54 -- methodInstErr, UNUSED
56 methodTypeLacksTyVarErr,
57 -- missingClassOpErr, UNUSED
58 naughtyCCallContextErr,
61 -- patMatchWithPrimErr, UNUSED
63 -- purelyLocalErr, UNUSED
67 specCtxtGroundnessErr,
70 specInstUnspecInstNotFoundErr,
71 topLevelUnboxedDeclErr,
79 #endif {- Data Parallel Haskell -}
84 -- and to make the interface self-sufficient
85 Bag, Class, ClassOp, MonoBinds, ProtoNameMonoBinds(..), Sig,
86 RenamedSig(..), Expr, RenamedExpr(..), GRHS, RenamedGRHS(..),
87 GRHSsAndBinds, RenamedGRHSsAndBinds(..), Match, IE,
88 RenamedMatch(..), InPat, ProtoNamePat(..), RenamedPat(..),
89 GenPragmas, Id, Inst, Name, PprStyle, Pretty(..), PrettyRep,
90 ProtoName, SrcLoc, TyCon, TyVar, TyVarTemplate, UniType,
91 TauType(..), Maybe, SignatureInfo, TypecheckedPat,
95 -- I don't know how much of this is needed... (WDP 94/06)
101 import AbsSyn -- we print a bunch of stuff in here
102 import UniType ( UniType(..) ) -- Concrete, to make some errors
104 import AbsUniType ( TyVar, TyVarTemplate, TyCon,
105 TauType(..), Class, ClassOp
106 IF_ATTACK_PRAGMAS(COMMA pprUniType)
108 import Bag ( Bag, bagToList )
109 import GenSpecEtc ( SignatureInfo(..) )
110 import HsMatches ( pprMatches, pprMatch, pprGRHS )
111 import Id ( getIdUniType, Id, isSysLocalId )
112 import Inst ( getInstOrigin, getDictClassAndType, Inst )
113 import Maybes ( Maybe(..) )
114 import Name ( cmpName )
116 import Pretty -- to pretty-print error messages
118 import PodizeMonad ( PodWarning(..) )
119 #endif {- Data Parallel Haskell -}
120 import SrcLoc ( mkUnknownSrcLoc, SrcLoc )