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