import Name ( isSystemName, getSrcLoc )
import ErrUtils ( Message )
import BasicTypes ( Boxity, Arity, isBoxed )
-import Util ( equalLength )
+import Util ( equalLength, notNull )
import Maybe ( isNothing )
import Outputable
\end{code}
returnTc (mkCoercion co_fn, result, free_lie)
where
free_tvs = tyVarsOfType expected_ty `unionVarSet` extra_tvs
- sig_msg = ptext SLIT("When generalising the type of an expression")
+ sig_msg = ptext SLIT("type of an expression")
\end{code}
-----------------------
escape_msg sig_tv tv globs
= mk_msg sig_tv <+> ptext SLIT("escapes") $$
- if not (null globs) then
+ if notNull globs then
vcat [pp_it <+> ptext SLIT("is mentioned in the environment:"),
nest 2 (vcat globs)]
else