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
59b4e6d0
Commit
59b4e6d0
authored
May 06, 2014
by
Simon Peyton Jones
Browse files
Adding missing test files for
#9071
parent
02227ddd
Changes
6
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/deriving/should_fail/T9071-2.hs
0 → 100644
View file @
59b4e6d0
{-# 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 @
59b4e6d0
{-# 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 @
59b4e6d0
[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 @
59b4e6d0
{-# 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 @
59b4e6d0
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 @
59b4e6d0
module
T9071a
where
newtype
Mu
f
=
Mu
(
f
(
Mu
f
))
Administrator
@root
mentioned in commit
f68d7b33
·
Dec 17, 2018
mentioned in commit
f68d7b33
mentioned in commit f68d7b33e90c3582428ec4d6f30be4d40687b464
Toggle commit list
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