Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Glasgow Haskell Compiler
GHC
Commits
ba7c8e59
Commit
ba7c8e59
authored
9 years ago
by
Simon Peyton Jones
Browse files
Options
Downloads
Patches
Plain Diff
Test Trac
#10503
parent
72b21c39
Loading
Loading
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
testsuite/tests/polykinds/T10503.hs
+9
-0
9 additions, 0 deletions
testsuite/tests/polykinds/T10503.hs
testsuite/tests/polykinds/T10503.stderr
+16
-0
16 additions, 0 deletions
testsuite/tests/polykinds/T10503.stderr
testsuite/tests/polykinds/all.T
+1
-0
1 addition, 0 deletions
testsuite/tests/polykinds/all.T
with
26 additions
and
0 deletions
testsuite/tests/polykinds/T10503.hs
0 → 100644
+
9
−
0
View file @
ba7c8e59
{-# LANGUAGE RankNTypes, PolyKinds, DataKinds, TypeFamilies #-}
module
GHCBug
where
data
Proxy
p
=
Proxy
data
KProxy
(
a
::
*
)
=
KProxy
h
::
forall
r
.
(
Proxy
(
'KProxy
::
KProxy
k
)
~
Proxy
(
'KProxy
::
KProxy
*
)
=>
r
)
->
r
h
=
undefined
This diff is collapsed.
Click to expand it.
testsuite/tests/polykinds/T10503.stderr
0 → 100644
+
16
−
0
View file @
ba7c8e59
T10503.hs:8:6: error:
Couldn't match kind ‘k’ with ‘*’
‘k’ is a rigid type variable bound by
the type signature for:
h :: ((Proxy 'KProxy ~ Proxy 'KProxy) => r) -> r
at T10503.hs:8:6
Expected type: Proxy 'KProxy
Actual type: Proxy 'KProxy
In the ambiguity check for the type signature for ‘h’:
h :: forall (k :: BOX) r.
((Proxy 'KProxy ~ Proxy 'KProxy) => r) -> r
To defer the ambiguity check to use sites, enable AllowAmbiguousTypes
In the type signature for ‘h’:
h :: forall r.
(Proxy (KProxy :: KProxy k) ~ Proxy (KProxy :: KProxy *) => r) -> r
This diff is collapsed.
Click to expand it.
testsuite/tests/polykinds/all.T
+
1
−
0
View file @
ba7c8e59
...
...
@@ -117,3 +117,4 @@ test('T7908', normal, compile, [''])
test
('
T10041
',
normal
,
compile
,
[''])
test
('
T10451
',
normal
,
compile_fail
,
[''])
test
('
T10516
',
normal
,
compile_fail
,
[''])
test
('
T10503
',
normal
,
compile_fail
,
[''])
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment