summaryrefslogtreecommitdiff
path: root/compiler/typecheck/TcClassDcl.lhs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/typecheck/TcClassDcl.lhs')
-rw-r--r--compiler/typecheck/TcClassDcl.lhs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/typecheck/TcClassDcl.lhs b/compiler/typecheck/TcClassDcl.lhs
index ab938d368a..68f27148b6 100644
--- a/compiler/typecheck/TcClassDcl.lhs
+++ b/compiler/typecheck/TcClassDcl.lhs
@@ -119,7 +119,7 @@ tcClassSigs clas sigs def_methods
dm_bind_names = [op | L _ (FunBind {fun_id = L _ op}) <- bagToList def_methods]
tc_sig genop_env (op_names, op_hs_ty)
- = do { op_ty <- tcHsKindedType op_hs_ty -- Class tyvars already in scope
+ = do { op_ty <- tcHsType op_hs_ty -- Class tyvars already in scope
; return [ (op_name, f op_name, op_ty) | L _ op_name <- op_names ] }
where
f nm | nm `elemNameEnv` genop_env = GenericDM
@@ -127,7 +127,7 @@ tcClassSigs clas sigs def_methods
| otherwise = NoDM
tc_gen_sig (op_names, gen_hs_ty)
- = do { gen_op_ty <- tcHsKindedType gen_hs_ty
+ = do { gen_op_ty <- tcHsType gen_hs_ty
; return [ (op_name, gen_op_ty) | L _ op_name <- op_names ] }
\end{code}