Replace uses of derive for Functor and Foldable with deriving {Foldable,Functor}