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
jberryman
GHC
Commits
6b7bad92
Commit
6b7bad92
authored
Oct 06, 2015
by
Simon Peyton Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test Trac #10931
parent
e737a512
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
testsuite/tests/indexed-types/should_compile/T10931.hs
testsuite/tests/indexed-types/should_compile/T10931.hs
+25
-0
testsuite/tests/indexed-types/should_compile/all.T
testsuite/tests/indexed-types/should_compile/all.T
+1
-0
No files found.
testsuite/tests/indexed-types/should_compile/T10931.hs
0 → 100644
View file @
6b7bad92
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE RankNTypes #-}
{-# OPTIONS_GHC -Wall #-}
module
T10931
(
BugC
(
..
)
)
where
data
IdT
f
a
=
IdC
(
f
a
)
class
(
m
~
Outer
m
(
Inner
m
)
)
=>
BugC
(
m
::
*
->
*
)
where
type
Inner
m
::
*
->
*
type
Outer
m
::
(
*
->
*
)
->
*
->
*
bug
::
(
forall
n
.
(
n
~
Outer
n
(
Inner
n
)
,
Outer
n
~
Outer
m
)
=>
Inner
n
a
)
->
m
a
instance
BugC
(
IdT
m
)
where
type
Inner
(
IdT
m
)
=
m
type
Outer
(
IdT
m
)
=
IdT
bug
f
=
IdC
f
testsuite/tests/indexed-types/should_compile/all.T
View file @
6b7bad92
...
...
@@ -264,3 +264,4 @@ test('T10713', normal, compile, [''])
test
('
T10753
',
normal
,
compile
,
[''])
test
('
T10806
',
normal
,
compile_fail
,
[''])
test
('
T10815
',
normal
,
compile
,
[''])
test
('
T10931
',
normal
,
compile
,
[''])
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