Skip to content

Commit

Permalink
Fix the tyvars used for data con signatures
Browse files Browse the repository at this point in the history
Mon Sep 18 19:06:12 EDT 2006  Manuel M T Chakravarty <chak@cse.unsw.edu.au>
  * Fix the tyvars used for data con signatures
  Sat Aug 19 17:19:25 EDT 2006  Manuel M T Chakravarty <chak@cse.unsw.edu.au>
    * Fix the tyvars used for data con signatures
  • Loading branch information
mchakravarty committed Sep 20, 2006
1 parent 80c89b8 commit 0e3e286
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions compiler/typecheck/TcTyClsDecls.lhs
Expand Up @@ -306,13 +306,12 @@ tcIdxTyInstDecl1 (decl@TyData {tcdND = new_or_data, tcdLName = L loc tc_name,
; checkTc (new_or_data == DataType || isSingleton k_cons) $
newtypeConError tc_name (length k_cons)
; final_tvs <- tcDataKindSig (Just $ tyConKind family)
; t_typats <- mappM tcHsKindedType k_typats
; stupid_theta <- tcHsKindedContext k_ctxt
; tycon <- fixM (\ tycon -> do
{ data_cons <- mappM (addLocM (tcConDecl unbox_strict new_or_data
tycon final_tvs (Just t_typats)))
tycon t_tvs (Just t_typats)))
k_cons
; tc_rhs <-
case new_or_data of
Expand Down

0 comments on commit 0e3e286

Please sign in to comment.