summaryrefslogtreecommitdiff
path: root/testsuite/tests/parser/should_compile/read056.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/parser/should_compile/read056.hs')
-rw-r--r--testsuite/tests/parser/should_compile/read056.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/parser/should_compile/read056.hs b/testsuite/tests/parser/should_compile/read056.hs
new file mode 100644
index 0000000000..bab900ad6a
--- /dev/null
+++ b/testsuite/tests/parser/should_compile/read056.hs
@@ -0,0 +1,11 @@
+
+{-# OPTIONS_GHC -XGeneralizedNewtypeDeriving #-}
+
+module Foo where
+
+class C a
+instance C Int
+
+newtype Foo = Foo Int
+ deriving C
+