Skip to content
Snippets Groups Projects
Commit 3a3a71aa authored by sof's avatar sof
Browse files

[project @ 1997-07-05 02:19:07 by sof]

parent 5a6336b8
No related branches found
No related tags found
No related merge requests found
_interface_ TcType 1
_exports_
TcType TcMaybe;
TcType TcMaybe TcTyVarSet;
_declarations_
1 data TcMaybe a;
1 type TcTyVarSet a = TyVar.GenTyVarSet (ArrBase.MutableVar a (TcMaybe a));
......@@ -178,7 +178,10 @@ inst_tyvars initial_cts tyvars
inst_tyvar initial_cts (TyVar _ kind name _)
= tcGetUnique `thenNF_Tc` \ uniq ->
tcNewMutVar initial_cts `thenNF_Tc` \ box ->
returnNF_Tc (TyVar uniq kind name box)
returnNF_Tc (TyVar uniq kind Nothing box)
-- The "Nothing" means that it'll always print with its
-- unique (or something similar). If we leave the original (Just Name)
-- in there then error messages will say "can't match (T a) against (T a)"
\end{code}
@tcInstType@ and @tcInstSigType@ both create a fresh instance of a
......
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