X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=compiler%2Ftypecheck%2FTcInstDcls.lhs;h=fc424813f7d2f8c4ab4bdc751f479c45ae751ed4;hb=6084fb5517da34f65034370a3695e2af3b85ce2b;hp=1f800d958193563968c64f5542821e64c59da96d;hpb=9319fbaf14f420cbbd9e670093cc86c5f04b7800;p=ghc-hetmet.git diff --git a/compiler/typecheck/TcInstDcls.lhs b/compiler/typecheck/TcInstDcls.lhs index 1f800d9..fc42481 100644 --- a/compiler/typecheck/TcInstDcls.lhs +++ b/compiler/typecheck/TcInstDcls.lhs @@ -31,6 +31,7 @@ import TypeRep import DataCon import Class import Var +import Id import MkId import Name import NameSet @@ -87,9 +88,9 @@ $tau_iop$ is the tau type for this instance of a class method \item $alpha$ is the class variable \item -$LIE_cop' = LIE_cop [X gammas_bar / alpha, fresh betas_bar]$ +$LIE_cop' = LIE_cop [X gammas_bar \/ alpha, fresh betas_bar]$ \item -$tau_cop' = tau_cop [X gammas_bar / alpha, fresh betas_bar]$ +$tau_cop' = tau_cop [X gammas_bar \/ alpha, fresh betas_bar]$ \end{enumerate} ToDo: Update the list above with names actually in the code. @@ -97,7 +98,7 @@ ToDo: Update the list above with names actually in the code. \begin{enumerate} \item First, make the LIEs for the class and instance contexts, which means -instantiate $thetaC [X inst_tyvars / alpha ]$, yielding LIElistC' and LIEC', +instantiate $thetaC [X inst_tyvars \/ alpha ]$, yielding LIElistC' and LIEC', and make LIElistI and LIEI. \item Then process each method in turn.