Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
a718f4a0
Commit
a718f4a0
authored
Nov 21, 2007
by
simonpj
Browse files
Test for Trac #1913
parent
d6030d4d
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/deriving/should_fail/all.T
View file @
a718f4a0
...
...
@@ -13,3 +13,4 @@ test('drvfail011', normal, compile_fail, [''])
test
('
drvfail012
',
normal
,
compile_fail
,
[''])
test
('
drvfail013
',
normal
,
compile_fail
,
[''])
test
('
drvfail014
',
normal
,
compile_fail
,
[''])
test
('
drvfail015
',
normal
,
compile_fail
,
[''])
testsuite/tests/ghc-regress/deriving/should_fail/drvfail015.hs
0 → 100644
View file @
a718f4a0
{-# OPTIONS_GHC -XStandaloneDeriving #-}
module
ShouldFail
where
import
System.IO
(
Handle
)
-- T is a synonym
type
T
=
Int
deriving
instance
Eq
T
-- Handle is abstract
deriving
instance
Eq
Handle
testsuite/tests/ghc-regress/deriving/should_fail/drvfail015.stderr
0 → 100644
View file @
a718f4a0
drvfail015.hs:10:0:
Illegal instance declaration for `Eq T'
(All instance types must be of the form (T t1 ... tn)
where T is not a synonym.
Use -XTypeSynonymInstances if you want to disable this.)
In the stand-alone deriving instance for `Eq T'
drvfail015.hs:13:0:
The data constructors of `Handle' are not all in scope
so you cannot derive an instance for it
In the stand-alone deriving instance for `Eq Handle'
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