X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FdeSugar%2FDsBinds.lhs;h=58e42fd1ac7123cce9430bee7070683f64dadc5e;hb=4a8a81e4c1a6e7b5fe85282229731916d9be908a;hp=de8e9818cfe1f4001ff1c12d715d0842ff6b86b4;hpb=f1c0fd99f16322fe222c6fcf4626a6162ad0a466;p=ghc-hetmet.git diff --git a/compiler/deSugar/DsBinds.lhs b/compiler/deSugar/DsBinds.lhs index de8e981..58e42fd 100644 --- a/compiler/deSugar/DsBinds.lhs +++ b/compiler/deSugar/DsBinds.lhs @@ -424,14 +424,14 @@ dsCoercion CoHole thing_inside = thing_inside dsCoercion (CoCompose c1 c2) thing_inside = dsCoercion c1 (dsCoercion c2 thing_inside) dsCoercion (ExprCoFn co) thing_inside = do { expr <- thing_inside ; return (Cast expr co) } -dsCoercion (CoLams ids) thing_inside = do { expr <- thing_inside - ; return (mkLams ids expr) } -dsCoercion (CoTyLams tvs) thing_inside = do { expr <- thing_inside - ; return (mkLams tvs expr) } -dsCoercion (CoApps ids) thing_inside = do { expr <- thing_inside - ; return (mkVarApps expr ids) } -dsCoercion (CoTyApps tys) thing_inside = do { expr <- thing_inside - ; return (mkTyApps expr tys) } +dsCoercion (CoLam id) thing_inside = do { expr <- thing_inside + ; return (Lam id expr) } +dsCoercion (CoTyLam tv) thing_inside = do { expr <- thing_inside + ; return (Lam tv expr) } +dsCoercion (CoApp id) thing_inside = do { expr <- thing_inside + ; return (App expr (Var id)) } +dsCoercion (CoTyApp ty) thing_inside = do { expr <- thing_inside + ; return (App expr (Type ty)) } dsCoercion (CoLet bs) thing_inside = do { prs <- dsLHsBinds bs ; expr <- thing_inside ; return (Let (Rec prs) expr) }