new_flavour = case flavourInfo core_idinfo of
VanillaId -> ConstantId
ExportedId -> ConstantId
+ ConstantId -> ConstantId -- e.g. Default methods
DictFunId -> DictFunId
flavour -> pprTrace "tidyIdInfo" (ppr id <+> ppFlavourInfo flavour)
flavour
-- Similar to tyClDeclNames, but returns the "implicit"
-- or "system" names of the declaration
-tyClDeclSysNames (ClassDecl {tcdSysNames = names, tcdLoc = loc})
- = [(n,loc) | n <- names]
+tyClDeclSysNames (ClassDecl {tcdSysNames = names, tcdLoc = loc, tcdSigs = sigs})
+ = [(n,loc) | n <- names] ++
+ [(n,loc) | ClassOpSig _ (DefMeth n) _ loc <- sigs]
tyClDeclSysNames (TyData {tcdCons = cons, tcdSysNames = names, tcdLoc = loc})
= [(n,loc) | n <- names] ++
[(wkr_name,loc) | ConDecl _ wkr_name _ _ _ loc <- cons]