deriving over renamed types