X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=compiler%2Fspecialise%2FRules.lhs;h=51dc435e4087816076759a2ea6aba1f246163ca4;hb=2d815d1f4a724875a6c724b5fd320967ee6219ba;hp=39a9f054c56f6678a621917f08d9f2a1432b029e;hpb=960a5edb6ac87c7d85e36f4b70be8da0175819f7;p=ghc-hetmet.git diff --git a/compiler/specialise/Rules.lhs b/compiler/specialise/Rules.lhs index 39a9f05..51dc435 100644 --- a/compiler/specialise/Rules.lhs +++ b/compiler/specialise/Rules.lhs @@ -189,6 +189,8 @@ addSpecInfo (SpecInfo rs1 fvs1) (SpecInfo rs2 fvs2) = SpecInfo (rs1 ++ rs2) (fvs1 `unionVarSet` fvs2) addIdSpecialisations :: Id -> [CoreRule] -> Id +addIdSpecialisations id [] + = id addIdSpecialisations id rules = setIdSpecialisation id $ extendSpecInfo (idSpecialisation id) rules