- = ATyCon tc : [ AnId n | dc <- tyConDataConsIfAvailable tc,
- n <- [dataConId dc, dataConWrapId dc] ]
+ = [ATyCon tc]
+ ++ [ AnId i | i <- tyConGenIds tc ]
+ ++ [ AnId n | dc <- tyConDataConsIfAvailable tc,
+ n <- [dataConId dc, dataConWrapId dc] ]