Skip to content
Snippets Groups Projects
Commit 4e075de5 authored by sof's avatar sof
Browse files

[project @ 1997-09-04 19:55:23 by sof]

wibble
parent c3b1c7e5
No related branches found
No related tags found
No related merge requests found
......@@ -335,8 +335,8 @@ tcExpr in_expr@(ExplicitList exprs) res_ty -- Non-empty list
tcExpr (ExplicitTuple exprs) res_ty
-- ToDo: more direct way of testing if res_ty is a tuple type (cf. unifyListTy)?
= mapNF_Tc (\ _ -> newTyVarTy mkBoxedTypeKind) [1..len] `thenNF_Tc` \ ty_vars ->
unifyTauTy (mkTupleTy len ty_vars) res_ty `thenTc_`
= mapNF_Tc (\ _ -> newTyVarTy mkBoxedTypeKind) [1..len] `thenNF_Tc` \ ty_vars ->
unifyTauTy (mkTupleTy len ty_vars) res_ty `thenTc_`
mapAndUnzipTc (\ (expr,ty_var) -> tcExpr expr ty_var)
(exprs `zip` ty_vars) -- we know they're of equal length.
`thenTc` \ (exprs', lies) ->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment