Comments and layout only
authorsimonpj@microsoft.com <unknown>
Mon, 11 Dec 2006 16:04:09 +0000 (16:04 +0000)
committersimonpj@microsoft.com <unknown>
Mon, 11 Dec 2006 16:04:09 +0000 (16:04 +0000)
compiler/typecheck/TcExpr.lhs
compiler/typecheck/TcPat.lhs

index d249716..18bef23 100644 (file)
@@ -76,6 +76,7 @@ tcPolyExprNC expr res_ty
   = do { (gen_fn, expr') <- tcGen res_ty emptyVarSet (\_ -> tcPolyExprNC expr)
                -- Note the recursive call to tcPolyExpr, because the
                -- type may have multiple layers of for-alls
+               -- E.g. forall a. Eq a => forall b. Ord b => ....
        ; return (mkLHsWrap gen_fn expr') }
 
   | otherwise
index 8dd5a7a..5fda4f4 100644 (file)
@@ -555,7 +555,7 @@ tcConPat pstate con_span data_con tycon pat_ty arg_pats thing_inside
        ; ex_tvs' <- tcInstSkolTyVars skol_info ex_tvs  -- Get location from monad,
                                                        -- not from ex_tvs
        ; let tenv     = zipTopTvSubst (univ_tvs ++ ex_tvs)
-                                     (ctxt_res_tys ++ mkTyVarTys ex_tvs')
+                                      (ctxt_res_tys ++ mkTyVarTys ex_tvs')
              eq_spec' = substEqSpec tenv eq_spec
              theta'   = substTheta  tenv theta
              arg_tys' = substTys    tenv arg_tys