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
d2c76332
Commit
d2c76332
authored
Nov 10, 2007
by
Ian Lynagh
Browse files
Add a test for trac #1588: unrequested generalized newtype deriving?
Test is drvfail013
parent
185965f6
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/deriving/should_fail/all.T
View file @
d2c76332
...
...
@@ -11,3 +11,4 @@ test('drvfail009', normal, compile_fail, [''])
test
('
drvfail010
',
normal
,
compile_fail
,
[''])
test
('
drvfail011
',
normal
,
compile_fail
,
[''])
test
('
drvfail012
',
normal
,
compile_fail
,
[''])
test
('
drvfail013
',
normal
,
compile_fail
,
[''])
testsuite/tests/ghc-regress/deriving/should_fail/drvfail013.hs
0 → 100644
View file @
d2c76332
-- Test for trac #1588: unrequested generalized newtype deriving?
newtype
MaybeT
m
a
=
MaybeT
{
runMaybeT
::
m
(
Maybe
a
)
}
deriving
Eq
data
MaybeT'
m
a
=
MaybeT'
{
runMaybeT'
::
m
(
Maybe
a
)
}
deriving
Eq
testsuite/tests/ghc-regress/deriving/should_fail/drvfail013.stderr
0 → 100644
View file @
d2c76332
drvfail013.hs:4:0:
No instance for (Eq (m (Maybe a)))
arising from the 'deriving' clause of a data type declaration
at drvfail013.hs:4:0-70
Possible fix: add an instance declaration for (Eq (m (Maybe a)))
When deriving the instance for (Eq (MaybeT m a))
drvfail013.hs:6:0:
No instance for (Eq (m (Maybe a)))
arising from the 'deriving' clause of a data type declaration
at drvfail013.hs:6:0-70
Possible fix: add an instance declaration for (Eq (m (Maybe a)))
When deriving the instance for (Eq (MaybeT' m a))
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