Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
d93dc415
Commit
d93dc415
authored
May 14, 2012
by
Simon Peyton Jones
Browse files
Test Trac
#6015
parent
6729fa6b
Changes
2
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/polykinds/T6015.hs
0 → 100644
View file @
d93dc415
{-# LANGUAGE DataKinds, MultiParamTypeClasses, FunctionalDependencies,
PolyKinds, UndecidableInstances, ScopedTypeVariables #-}
module
T6015
where
data
Proxy
a
=
Proxy
class
Value
a
t
|
a
->
t
where
value
::
Proxy
a
->
t
instance
Value
True
Bool
where
value
_
=
True
instance
Value
a
t
=>
Value
(
Just
a
)
(
Maybe
t
)
where
value
_
=
Just
(
value
(
Proxy
::
Proxy
a
))
test
=
value
(
Proxy
::
Proxy
(
Just
True
))
testsuite/tests/polykinds/all.T
View file @
d93dc415
...
...
@@ -45,3 +45,4 @@ test('T6020a', normal, compile, [''])
test
('
T6044
',
normal
,
compile
,
[''])
test
('
T6054
',
normal
,
run_command
,
['
$MAKE -s --no-print-directory T6054
'])
test
('
T6081
',
normal
,
compile
,
[''])
test
('
T6015
',
normal
,
compile
,
[''])
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment