Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
5cfe1939
Commit
5cfe1939
authored
Jul 10, 2007
by
Ian Lynagh
Browse files
Follow error message changes
parent
ef9332fd
Changes
4
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/module/mod42.stderr
View file @
5cfe1939
mod42.hs:3:0:
Illegal instance declaration for `Eq a'
(All instance types must be of the form (T
t
1 ...
t
n)
where
T is not a synonym.
Use -X
TypeSynonym
Instances if you want to disable this.)
(All instance types must be of the form (T
a
1 ...
a
n)
where
a1 ... an are distinct type *variables*
Use -X
Flexible
Instances if you want to disable this.)
In the instance declaration for `Eq a'
testsuite/tests/ghc-regress/parser/should_fail/read039.stderr
View file @
5cfe1939
...
...
@@ -2,5 +2,5 @@
read039.hs:7:0:
Can't make a derived instance of `C Foo'
(`C' is not a derivable class
Try -
fglasgow-exts
for GHC's newtype-deriving extension)
Try -
XGeneralizedNewtypeDeriving
for GHC's newtype-deriving extension)
In the newtype declaration for `Foo'
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail117.hs
View file @
5cfe1939
module
ShouldFail
where
-- Without
-fglasgow-exts
both of these should fail
-- Without
any extensions enabled
both of these should fail
newtype
N1
=
N1
Int
deriving
(
Enum
)
data
N2
=
N2
Int
deriving
(
Enum
)
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail117.stderr
View file @
5cfe1939
...
...
@@ -2,7 +2,7 @@
tcfail117.hs:5:0:
Can't make a derived instance of `Enum N1'
(`N1' has non-nullary constructors
Try -
fglasgow-exts
for GHC's newtype-deriving extension)
Try -
XGeneralizedNewtypeDeriving
for GHC's newtype-deriving extension)
In the newtype declaration for `N1'
tcfail117.hs:6:0:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment