import RnMonad ( RnNameSupply )
import Bag ( isEmptyBag )
-import ErrUtils ( ErrMsg,
+import ErrUtils ( Message,
pprBagOfErrors, dumpIfSet
)
import Id ( Id, idType )
in
zonkTopBinds all_binds `thenNF_Tc` \ (all_binds', really_final_env) ->
tcSetValueEnv really_final_env $
- zonkForeignExports foe_decls `thenNF_Tc` \ foe_decls' ->
+ zonkForeignExports foe_decls `thenNF_Tc` \ foe_decls' ->
let
thin_air_ids = map (explicitLookupValueByKey really_final_env . nameUnique) thinAirIdNames
in
returnTc (really_final_env,
(all_binds', local_tycons, local_classes, inst_info,
- foi_decls ++ foe_decls',
+ (foi_decls ++ foe_decls'),
really_final_env,
thin_air_ids))
)
= hsep [ptext SLIT("Module"), quotes (pprModule mAIN),
ptext SLIT("must include a definition for"), quotes (ppr main_NAME)]
-mainTyMisMatch :: TcType -> TcType -> ErrMsg
+mainTyMisMatch :: TcType -> TcType -> Message
mainTyMisMatch expected actual
= hang (hsep [ppr main_NAME, ptext SLIT("has the wrong type")])
4 (vcat [