[project @ 2001-04-09 23:22:42 by lewie]
authorlewie <unknown>
Mon, 9 Apr 2001 23:22:42 +0000 (23:22 +0000)
committerlewie <unknown>
Mon, 9 Apr 2001 23:22:42 +0000 (23:22 +0000)
Tag id of implicit param has having a PredType.

ghc/compiler/typecheck/Inst.lhs

index ba81958..4d258ee 100644 (file)
@@ -314,7 +314,8 @@ newDictsAtLoc inst_loc@(_,loc,_) theta
 
 newIPDict orig name ty
   = tcGetInstLoc orig                  `thenNF_Tc` \ inst_loc ->
-    returnNF_Tc (Dict (mkLocalId name ty) (IParam name ty) inst_loc)
+    returnNF_Tc (Dict (mkLocalId name (mkPredTy pred)) pred inst_loc)
+  where pred = IParam name ty
 \end{code}