X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2FdeSugar%2FDsExpr.lhs;h=ea1eeebea2fdf654c4b6f477c3612f32be5d4053;hb=074d99bd864680f896b671fa354fcca6be77ae12;hp=e1023c2b63a40485fc7cc59e0b1fd8669a2ae459;hpb=e6177a676dcfb4af25afed19b2a5edbc716d51e2;p=ghc-hetmet.git diff --git a/ghc/compiler/deSugar/DsExpr.lhs b/ghc/compiler/deSugar/DsExpr.lhs index e1023c2..ea1eeeb 100644 --- a/ghc/compiler/deSugar/DsExpr.lhs +++ b/ghc/compiler/deSugar/DsExpr.lhs @@ -32,7 +32,7 @@ import Match ( matchWrapper, matchSimply ) import CostCentre ( mkUserCC ) import FieldLabel ( FieldLabel ) import Id ( Id, idType, recordSelectorFieldLabel ) -import DataCon ( DataCon, dataConId, dataConTyCon, dataConArgTys, dataConFieldLabels ) +import DataCon ( DataCon, dataConWrapId, dataConTyCon, dataConArgTys, dataConFieldLabels ) import PrelInfo ( rEC_CON_ERROR_ID, rEC_UPD_ERROR_ID, iRREFUT_PAT_ERROR_ID, addr2IntegerId ) import TyCon ( isNewTyCon ) import DataCon ( isExistentialDataCon ) @@ -507,7 +507,7 @@ dsExpr (RecordUpdOut record_expr record_out_ty dicts rbinds) let val_args = zipWithEqual "dsExpr:RecordUpd" mk_val_arg (dataConFieldLabels con) arg_ids - rhs = foldl HsApp (DictApp (TyApp (HsVar (dataConId con)) + rhs = foldl HsApp (DictApp (TyApp (HsVar (dataConWrapId con)) out_inst_tys) dicts) val_args