{-# LANGUAGE Haskell2010 #-} module ShouldFail where -- Without any extensions enabled both of these should fail newtype N1 = N1 Int deriving ( Enum ) data N2 = N2 Int deriving ( Enum )