Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
f68d7b33
Commit
f68d7b33
authored
May 06, 2014
by
Simon Peyton Jones
Committed by
Austin Seipp
Jun 30, 2014
Browse files
Adding missing test files for
#9071
(cherry picked from commit
59b4e6d0
)
parent
f79b5ab8
Changes
6
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/deriving/should_fail/T9071-2.hs
0 → 100644
View file @
f68d7b33
{-# LANGUAGE DeriveFunctor #-}
module
T9071_2
where
newtype
Mu
f
=
Mu
(
f
(
Mu
f
))
newtype
K1
a
b
=
K1
a
newtype
F1
a
=
F1
(
Mu
(
K1
a
))
deriving
Functor
testsuite/tests/deriving/should_fail/T9071.hs
0 → 100644
View file @
f68d7b33
{-# LANGUAGE DeriveFunctor #-}
module
T9071
where
import
T9071a
newtype
K
a
b
=
K
a
newtype
F
a
=
F
(
Mu
(
K
a
))
deriving
Functor
testsuite/tests/deriving/should_fail/T9071.stderr
0 → 100644
View file @
f68d7b33
[1 of 2] Compiling T9071a ( T9071a.hs, T9071a.o )
[2 of 2] Compiling T9071 ( T9071.hs, T9071.o )
T9071.hs:7:37:
No instance for (Functor K)
arising from the first field of ‘F’ (type ‘Mu (K a)’)
Possible fix:
use a standalone 'deriving instance' declaration,
so you can specify the instance context yourself
When deriving the instance for (Functor F)
testsuite/tests/deriving/should_fail/T9071_2.hs
0 → 100644
View file @
f68d7b33
{-# LANGUAGE DeriveFunctor #-}
module
T9071_2
where
newtype
Mu
f
=
Mu
(
f
(
Mu
f
))
newtype
K1
a
b
=
K1
a
newtype
F1
a
=
F1
(
Mu
(
K1
a
))
deriving
Functor
testsuite/tests/deriving/should_fail/T9071_2.stderr
0 → 100644
View file @
f68d7b33
T9071_2.hs:7:40:
No instance for (Functor Mu)
arising from the first field of ‘F1’ (type ‘Mu (K1 a)’)
Possible fix:
use a standalone 'deriving instance' declaration,
so you can specify the instance context yourself
When deriving the instance for (Functor F1)
testsuite/tests/deriving/should_fail/T9071a.hs
0 → 100644
View file @
f68d7b33
module
T9071a
where
newtype
Mu
f
=
Mu
(
f
(
Mu
f
))
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