Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
0e1e7987
Commit
0e1e7987
authored
Jun 26, 2015
by
Simon Peyton Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test Trac
#10524
parent
ceb3c844
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
+19
-0
testsuite/tests/deriving/should_fail/T10524.hs
testsuite/tests/deriving/should_fail/T10524.hs
+8
-0
testsuite/tests/deriving/should_fail/T10524.stderr
testsuite/tests/deriving/should_fail/T10524.stderr
+10
-0
testsuite/tests/deriving/should_fail/all.T
testsuite/tests/deriving/should_fail/all.T
+1
-0
No files found.
testsuite/tests/deriving/should_fail/T10524.hs
0 → 100644
View file @
0e1e7987
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE PolyKinds #-}
module
T10524
where
import
Data.Data
newtype
WrappedFunctor
f
a
=
WrapFunctor
(
f
a
)
deriving
(
Data
,
Typeable
)
testsuite/tests/deriving/should_fail/T10524.stderr
0 → 100644
View file @
0e1e7987
T10524.hs:7:58: error:
No instance for (Typeable WrappedFunctor)
arising from the 'deriving' clause of a data type declaration
GHC can't yet do polykinded
Typeable (WrappedFunctor :: (k -> *) -> k -> *)
Possible fix:
use a standalone 'deriving instance' declaration,
so you can specify the instance context yourself
When deriving the instance for (Data (WrappedFunctor f a))
testsuite/tests/deriving/should_fail/all.T
View file @
0e1e7987
...
...
@@ -54,3 +54,4 @@ test('T9071_2', normal, compile_fail, [''])
test
('
T9687
',
normal
,
compile_fail
,
[''])
test
('
T8984
',
normal
,
compile_fail
,
[''])
test
('
T10524
',
normal
,
compile_fail
,
[''])
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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