Comments only
authorsimonpj@microsoft.com <unknown>
Thu, 2 Oct 2008 13:28:33 +0000 (13:28 +0000)
committersimonpj@microsoft.com <unknown>
Thu, 2 Oct 2008 13:28:33 +0000 (13:28 +0000)
compiler/typecheck/TcRnTypes.lhs
compiler/typecheck/TcSimplify.lhs

index 3d9bb60..86f1dfc 100644 (file)
@@ -208,11 +208,6 @@ data TcGblEnv
                -- The binds, rules and foreign-decl fiels are collected
                -- initially in un-zonked form and are finally zonked in tcRnSrcDecls
 
-               -- The next fields accumulate the payload of the
-               -- module The binds, rules and foreign-decl fiels are
-               -- collected initially in un-zonked form and are
-               -- finally zonked in tcRnSrcDecls
-
         tcg_rn_imports :: Maybe [LImportDecl Name],
         tcg_rn_exports :: Maybe [Located (IE Name)],
        tcg_rn_decls :: Maybe (HsGroup Name),   -- renamed decls, maybe
index 9d89125..534c5d0 100644 (file)
@@ -1886,6 +1886,8 @@ reduceContext env wanteds0
          -- This may expose some further equational constraints...
        ; let (wanted_implics, wanted_dicts) = partition isImplicInst wanteds'
        ; (avails, extra_eqs) <- getLIE (reduceList env wanted_dicts init_state)
+                  -- The getLIE is reqd because reduceList does improvement
+                  -- (via extendAvails) which may in turn do unification
        ; (dict_binds, 
            bound_dicts, 
            dict_irreds)       <- extractResults avails wanted_dicts