{-# LANGUAGE GeneralizedNewtypeDeriving #-} newtype Foo = Foo Int deriving Functor