Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
ff9f9a7f
Commit
ff9f9a7f
authored
Apr 14, 2014
by
Simon Peyton Jones
Browse files
Test Trac #8985
parent
e7f0ae7f
Changes
2
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/polykinds/T8985.hs
0 → 100644
View file @
ff9f9a7f
{-# LANGUAGE DataKinds, PolyKinds, TypeFamilies, GADTs, TypeOperators #-}
module
T8905
where
data
X
(
xs
::
[
k
])
=
MkX
data
Y
::
(
k
->
*
)
->
[
k
]
->
*
where
MkY
::
f
x
->
Y
f
(
x
'
:
xs
)
type
family
F
(
a
::
[[
*
]])
::
*
type
instance
F
xss
=
Y
X
xss
works
::
Y
X
'
[
'
[ ]
]
->
()
works
(
MkY
MkX
)
=
()
fails
::
F
'
[
'
[ ]
]
->
()
fails
(
MkY
MkX
)
=
()
testsuite/tests/polykinds/all.T
View file @
ff9f9a7f
...
...
@@ -99,3 +99,4 @@ test('T8616', normal, compile_fail,[''])
test
('
T8566a
',
expect_broken
(
8566
),
compile
,[''])
test
('
T7481
',
normal
,
compile_fail
,[''])
test
('
T8705
',
normal
,
compile
,
[''])
test
('
T8985
',
normal
,
compile
,
[''])
Write
Preview
Supports
Markdown
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