X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Frename%2FRnBinds.lhs;h=4a7bd54ee35329111772e33ddfe6487b8306b57b;hb=87fe9c34612b5149ae8c8307567cb4cf54db82f2;hp=18d47c0fea1b5bbb10d3811b287a01c233b8dd5d;hpb=9dd6e1c216993624a2cd74b62ca0f0569c02c26b;p=ghc-hetmet.git diff --git a/ghc/compiler/rename/RnBinds.lhs b/ghc/compiler/rename/RnBinds.lhs index 18d47c0..4a7bd54 100644 --- a/ghc/compiler/rename/RnBinds.lhs +++ b/ghc/compiler/rename/RnBinds.lhs @@ -26,7 +26,7 @@ import RnHsSyn import RnMonad import RnExpr ( rnMatch, rnGRHSsAndBinds, rnPat, checkPrecMatch ) import RnEnv ( bindLocatedLocalsRn, lookupBndrRn, lookupOccRn, - newLocalNames, isUnboundName, warnUnusedNames + newLocalNames, isUnboundName, warnUnusedBinds ) import CmdLineOpts ( opt_SigsRequired ) import Digraph ( stronglyConnComp, SCC(..) ) @@ -181,7 +181,7 @@ rnTopMonoBinds mbinds sigs let unused_binders = binder_set `minusNameSet` (fv_set `unionNameSets` exported_binders) in - warnUnusedNames unused_binders `thenRn_` + warnUnusedBinds unused_binders `thenRn_` returnRn new_binds where binder_rdr_names = map fst (bagToList (collectMonoBinders mbinds)) @@ -233,7 +233,7 @@ rnMonoBinds mbinds sigs thing_inside -- Non-empty monobinds net_fvs = all_fvs `minusNameSet` binder_set unused_binders = binder_set `minusNameSet` all_fvs in - warnUnusedNames unused_binders `thenRn_` + warnUnusedBinds unused_binders `thenRn_` returnRn (result, net_fvs) where mbinders_w_srclocs = bagToList (collectMonoBinders mbinds) @@ -567,7 +567,7 @@ sig_doc (InlineSig _ loc) = (SLIT("INLINE pragma"),loc) sig_doc (MagicUnfoldingSig _ _ loc) = (SLIT("MAGIC_UNFOLDING pragma"),loc) missingSigErr var - = sep [ptext SLIT("a definition but no type signature for"), quotes (ppr var)] + = sep [ptext SLIT("Definition but no type signature for"), quotes (ppr var)] methodBindErr mbind = hang (ptext SLIT("Can't handle multiple methods defined by one pattern binding"))