summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail
diff options
context:
space:
mode:
authorDimitrios.Vytiniotis <dimitris@microsoft.com>2012-04-04 17:04:07 +0100
committerDimitrios.Vytiniotis <dimitris@microsoft.com>2012-04-04 17:04:07 +0100
commitdb71e3edcd006067054c0ae2fe555d292c59fc18 (patch)
treecc4da12269f3a5f050a4c3670e83df860c703c9b /testsuite/tests/typecheck/should_fail
parent77af34380c16edb8b972aa360a44bdcac91aa5be (diff)
parent01fcb7aa26f30d8c1362922a361d86403f95d338 (diff)
downloadhaskell-db71e3edcd006067054c0ae2fe555d292c59fc18.tar.gz
Merge branch 'master' of http://darcs.haskell.org/testsuite
Diffstat (limited to 'testsuite/tests/typecheck/should_fail')
-rw-r--r--testsuite/tests/typecheck/should_fail/T2714.hs2
-rw-r--r--testsuite/tests/typecheck/should_fail/T5957.hs4
-rw-r--r--testsuite/tests/typecheck/should_fail/T5957.stderr6
-rw-r--r--testsuite/tests/typecheck/should_fail/all.T1
4 files changed, 12 insertions, 1 deletions
diff --git a/testsuite/tests/typecheck/should_fail/T2714.hs b/testsuite/tests/typecheck/should_fail/T2714.hs
index 80f838c37c..b27acb735b 100644
--- a/testsuite/tests/typecheck/should_fail/T2714.hs
+++ b/testsuite/tests/typecheck/should_fail/T2714.hs
@@ -1,4 +1,4 @@
-{-# LANGUAGE ScopedTypeVariables #-}
+{-# LANGUAGE ScopedTypeVariables, RankNTypes #-}
-- Trac #2714
diff --git a/testsuite/tests/typecheck/should_fail/T5957.hs b/testsuite/tests/typecheck/should_fail/T5957.hs
new file mode 100644
index 0000000000..c168a00f3a
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/T5957.hs
@@ -0,0 +1,4 @@
+module T5957 where
+
+flex :: Int -> Show a => a -> String
+flex i a = show a ++ show i
diff --git a/testsuite/tests/typecheck/should_fail/T5957.stderr b/testsuite/tests/typecheck/should_fail/T5957.stderr
new file mode 100644
index 0000000000..c0bc12a7a2
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/T5957.stderr
@@ -0,0 +1,6 @@
+
+T5957.hs:3:9:
+ Illegal polymorphic or qualified type: Show a => a -> String
+ Perhaps you intended to use -XRankNTypes or -XRank2Types
+ In the type signature for `flex':
+ flex :: Int -> Show a => a -> String
diff --git a/testsuite/tests/typecheck/should_fail/all.T b/testsuite/tests/typecheck/should_fail/all.T
index 9d4d6a03c4..caf92fb011 100644
--- a/testsuite/tests/typecheck/should_fail/all.T
+++ b/testsuite/tests/typecheck/should_fail/all.T
@@ -271,3 +271,4 @@ test('T5573b', normal, compile_fail, [''])
test('T5689', normal, compile_fail, [''])
test('T5684', normal, compile_fail, [''])
test('T5858', normal, compile_fail, [''])
+test('T5957', normal, compile_fail, [''])