X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcRnTypes.lhs;h=9a08e9a6535d65661922adc6ecf5a5e1523ccd82;hb=382fce427106197b5e7dec81165af20329ac6cc2;hp=b624a14a65340487d8efe04139b06df2b0f73a7e;hpb=ecd655aaaa4ae495933415ad1ff6f6132ff3967f;p=ghc-hetmet.git diff --git a/compiler/typecheck/TcRnTypes.lhs b/compiler/typecheck/TcRnTypes.lhs index b624a14..9a08e9a 100644 --- a/compiler/typecheck/TcRnTypes.lhs +++ b/compiler/typecheck/TcRnTypes.lhs @@ -598,15 +598,20 @@ data Inst | ImplicInst { -- An implication constraint -- forall tvs. (reft, given) => wanted tci_name :: Name, - tci_tyvars :: [TcTyVar], -- Includes coercion variables + tci_tyvars :: [TcTyVar], -- Quantified type variables + -- Includes coercion variables -- mentioned in tci_reft tci_reft :: Refinement, tci_given :: [Inst], -- Only Dicts -- (no Methods, LitInsts, ImplicInsts) tci_wanted :: [Inst], -- Only Dicts and ImplicInsts -- (no Methods or LitInsts) + tci_loc :: InstLoc } + -- NB: the tci_given are not necessarily rigid, + -- although they will be if the tci_reft is non-trivial + -- NB: the tci_reft is already applied to tci_given and tci_wanted | Method { tci_id :: TcId, -- The Id for the Inst