X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fvectorise%2FVectorise%2FType%2FPADict.hs;h=ed6264a2252201eb5711482ca5c870ba84ecc723;hb=4837a66d2d6a8a6db09067a3cd8c9038a9027a2d;hp=6c94ae0258776320d5be0e8e57e1408cd4e1bcb1;hpb=fff1f6194c3c39de53cd645bda9865fb131b1c68;p=ghc-hetmet.git diff --git a/compiler/vectorise/Vectorise/Type/PADict.hs b/compiler/vectorise/Vectorise/Type/PADict.hs index 6c94ae0..ed6264a 100644 --- a/compiler/vectorise/Vectorise/Type/PADict.hs +++ b/compiler/vectorise/Vectorise/Type/PADict.hs @@ -19,7 +19,6 @@ import TypeRep import Id import Var import Name -import Class import Outputable -- debug = False @@ -61,7 +60,8 @@ buildPADict vect_tc prepr_tc arr_tc repr -- Set the unfolding for the inliner. raw_dfun <- newExportedVar dfun_name dfun_ty - let dfun = raw_dfun `setIdUnfolding` mkDFunUnfolding dfun_ty (map Var method_ids) + let dfun_unf = mkDFunUnfolding dfun_ty (map (DFunPolyArg . Var) method_ids) + dfun = raw_dfun `setIdUnfolding` dfun_unf `setInlinePragma` dfunInlinePragma -- Add the new binding to the top-level environment.