diff options
Diffstat (limited to 'testsuite/tests/deriving/should_fail/drvfail015.hs')
-rw-r--r-- | testsuite/tests/deriving/should_fail/drvfail015.hs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/deriving/should_fail/drvfail015.hs b/testsuite/tests/deriving/should_fail/drvfail015.hs new file mode 100644 index 0000000000..32d6134d34 --- /dev/null +++ b/testsuite/tests/deriving/should_fail/drvfail015.hs @@ -0,0 +1,13 @@ +{-# OPTIONS_GHC -XStandaloneDeriving #-} + +module ShouldFail where + +import System.IO( Handle ) + + +-- T is a synonym +type T = Int +deriving instance Eq T + +-- Handle is abstract +deriving instance Eq Handle |