{-# LANGUAGE GeneralizedNewtypeDeriving, DeriveDataTypeable #-} data Foo = Foo Int deriving Class