Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4,324
Issues
4,324
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
388
Merge Requests
388
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
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
Hide 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