X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2FdeSugar%2FDsMeta.hs;h=4f9f9557650bbdd3bc07fd4edef428dcd8a0bd3d;hb=9137abfe168cec9d253484ee120d0cc744f2bc59;hp=e13b06237021feb63aec4fc20fbd0c1199dd18c5;hpb=b16992d66aa5f610de586eb8a720214b8065bd65;p=ghc-hetmet.git diff --git a/ghc/compiler/deSugar/DsMeta.hs b/ghc/compiler/deSugar/DsMeta.hs index e13b062..4f9f955 100644 --- a/ghc/compiler/deSugar/DsMeta.hs +++ b/ghc/compiler/deSugar/DsMeta.hs @@ -285,18 +285,18 @@ ds_msg = ptext SLIT("Cannot desugar this Template Haskell declaration:") ------------------------------------------------------- repC :: LConDecl Name -> DsM (Core TH.ConQ) -repC (L loc (ConDecl con [] (L _ []) details)) +repC (L loc (ConDecl con expl [] (L _ []) details ResTyH98)) = do { con1 <- lookupLOcc con ; -- See note [Binders and occurrences] repConstr con1 details } -repC (L loc (ConDecl con tvs (L cloc ctxt) details)) +repC (L loc (ConDecl con expl tvs (L cloc ctxt) details ResTyH98)) = do { addTyVarBinds tvs $ \bndrs -> do { - c' <- repC (L loc (ConDecl con [] (L cloc []) details)); + c' <- repC (L loc (ConDecl con expl [] (L cloc []) details ResTyH98)); ctxt' <- repContext ctxt; bndrs' <- coreList nameTyConName bndrs; rep2 forallCName [unC bndrs', unC ctxt', unC c'] } } -repC (L loc con_decl) +repC (L loc con_decl) -- GADTs = putSrcSpanDs loc $ do { dsWarn (hang ds_msg 4 (ppr con_decl)) ; return (panic "DsMeta:repC") }