[project @ 2003-02-14 14:19:29 by simonpj]
authorsimonpj <unknown>
Fri, 14 Feb 2003 14:19:29 +0000 (14:19 +0000)
committersimonpj <unknown>
Fri, 14 Feb 2003 14:19:29 +0000 (14:19 +0000)
Comments

ghc/compiler/typecheck/TcSimplify.lhs

index 90fcb9c..6c845aa 100644 (file)
@@ -1608,6 +1608,8 @@ It's OK: the final zonking stage should zap y to (), which is fine.
 
 \begin{code}
 tcSimplifyTop :: [Inst] -> TcM TcDictBinds
+-- The TcLclEnv should be valid here, solely to improve
+-- error message generation for the monomorphism restriction
 tcSimplifyTop wanteds
   = getLclEnv                                                  `thenM` \ lcl_env ->
     traceTc (text "tcSimplifyTop" <+> ppr (lclEnvElts lcl_env))        `thenM_`