summaryrefslogtreecommitdiff
path: root/testsuite/tests/parser/should_fail/readFail008.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/parser/should_fail/readFail008.hs')
-rw-r--r--testsuite/tests/parser/should_fail/readFail008.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/tests/parser/should_fail/readFail008.hs b/testsuite/tests/parser/should_fail/readFail008.hs
new file mode 100644
index 0000000000..606af912f0
--- /dev/null
+++ b/testsuite/tests/parser/should_fail/readFail008.hs
@@ -0,0 +1,5 @@
+module ShouldFail where
+
+-- strictness annotations on the argument to a newtype constructor
+-- are not allowed.
+newtype N a = T ![a]