summaryrefslogtreecommitdiff
path: root/testsuite/tests/gadt
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2013-05-21 12:31:23 +0100
committerSimon Peyton Jones <simonpj@microsoft.com>2013-05-21 12:32:05 +0100
commitea5bdfd5fd7836331bd79c2a013c6c1e37553727 (patch)
treea1eab41ff9c7134593838e4fe471c907d4240770 /testsuite/tests/gadt
parent26eee8d9852f5927011841ce6e16a25766e1ed59 (diff)
downloadhaskell-ea5bdfd5fd7836331bd79c2a013c6c1e37553727.tar.gz
Improved error message
Diffstat (limited to 'testsuite/tests/gadt')
-rw-r--r--testsuite/tests/gadt/gadtSyntaxFail001.stderr1
-rw-r--r--testsuite/tests/gadt/gadtSyntaxFail002.stderr1
-rw-r--r--testsuite/tests/gadt/gadtSyntaxFail003.stderr1
3 files changed, 3 insertions, 0 deletions
diff --git a/testsuite/tests/gadt/gadtSyntaxFail001.stderr b/testsuite/tests/gadt/gadtSyntaxFail001.stderr
index 53b198a14d..0250c5e663 100644
--- a/testsuite/tests/gadt/gadtSyntaxFail001.stderr
+++ b/testsuite/tests/gadt/gadtSyntaxFail001.stderr
@@ -1,6 +1,7 @@
gadtSyntaxFail001.hs:8:5:
Data constructor ‛C2’ has existential type variables, a context, or a specialised result type
+ C2 :: forall a. a -> Char -> Foo a Int
(Use -XExistentialQuantification or -XGADTs to allow this)
In the definition of data constructor ‛C2’
In the data declaration for ‛Foo’
diff --git a/testsuite/tests/gadt/gadtSyntaxFail002.stderr b/testsuite/tests/gadt/gadtSyntaxFail002.stderr
index ca1060d8ee..ebfd62d7bc 100644
--- a/testsuite/tests/gadt/gadtSyntaxFail002.stderr
+++ b/testsuite/tests/gadt/gadtSyntaxFail002.stderr
@@ -1,6 +1,7 @@
gadtSyntaxFail002.hs:8:5:
Data constructor ‛C2’ has existential type variables, a context, or a specialised result type
+ C2 :: forall a. a -> Char -> Foo a a
(Use -XExistentialQuantification or -XGADTs to allow this)
In the definition of data constructor ‛C2’
In the data declaration for ‛Foo’
diff --git a/testsuite/tests/gadt/gadtSyntaxFail003.stderr b/testsuite/tests/gadt/gadtSyntaxFail003.stderr
index eb2e370a66..aeed6f7d9a 100644
--- a/testsuite/tests/gadt/gadtSyntaxFail003.stderr
+++ b/testsuite/tests/gadt/gadtSyntaxFail003.stderr
@@ -1,6 +1,7 @@
gadtSyntaxFail003.hs:7:5:
Data constructor ‛C1’ has existential type variables, a context, or a specialised result type
+ C1 :: forall b a c. a -> Int -> c -> Foo b a
(Use -XExistentialQuantification or -XGADTs to allow this)
In the definition of data constructor ‛C1’
In the data declaration for ‛Foo’