summaryrefslogtreecommitdiff
path: root/testsuite/tests
diff options
context:
space:
mode:
authorsimonpj <simonpj@microsoft.com>2010-03-01 11:25:17 +0000
committersimonpj <simonpj@microsoft.com>2010-03-01 11:25:17 +0000
commit5c8d037ee98943d34d4454371a4628d7fe53fb71 (patch)
tree9841437ac3ee917f858980fde7e665061fa96e4a /testsuite/tests
parent5756824fbf744e3ec8a743d1e329cca89ef35fc6 (diff)
downloadhaskell-5c8d037ee98943d34d4454371a4628d7fe53fb71.tar.gz
Track extra suggestion in newtype deriving (cf Trac #3888)
Diffstat (limited to 'testsuite/tests')
-rw-r--r--testsuite/tests/ghc-regress/typecheck/should_fail/tcfail117.stderr21
1 files changed, 11 insertions, 10 deletions
diff --git a/testsuite/tests/ghc-regress/typecheck/should_fail/tcfail117.stderr b/testsuite/tests/ghc-regress/typecheck/should_fail/tcfail117.stderr
index 3966154cd8..60d20ac20b 100644
--- a/testsuite/tests/ghc-regress/typecheck/should_fail/tcfail117.stderr
+++ b/testsuite/tests/ghc-regress/typecheck/should_fail/tcfail117.stderr
@@ -1,10 +1,11 @@
-
-tcfail117.hs:5:32:
- Can't make a derived instance of `Enum N1':
- `N1' has non-nullary constructors
- In the newtype declaration for `N1'
-
-tcfail117.hs:6:32:
- Can't make a derived instance of `Enum N2':
- `N2' has non-nullary constructors
- In the data type declaration for `N2'
+
+tcfail117.hs:5:32:
+ Can't make a derived instance of `Enum N1':
+ `N1' has non-nullary constructors
+ Try -XGeneralizedNewtypeDeriving for GHC's newtype-deriving extension
+ In the newtype declaration for `N1'
+
+tcfail117.hs:6:32:
+ Can't make a derived instance of `Enum N2':
+ `N2' has non-nullary constructors
+ In the data type declaration for `N2'