Skip to content
Snippets Groups Projects
Commit a654d4f5 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Add a test for trac #1588: unrequested generalized newtype deriving?

Test is drvfail013
parent 51f47de7
No related branches found
No related tags found
No related merge requests found
......@@ -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, [''])
-- 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
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))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment