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
ffd72d2b
Commit
ffd72d2b
authored
Mar 04, 2012
by
Simon Peyton Jones
Browse files
Test Trac
#5862
parent
3b9c6514
Changes
2
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/polykinds/T5862.hs
0 → 100644
View file @
ffd72d2b
{-# LANGUAGE PolyKinds,
TypeFamilies,
GADTs,
DataKinds,
KindSignatures
#-}
module
T5862
where
data
Nat
=
Zero
|
Succ
Nat
data
SNat
a
where
SZero
::
SNat
'Zero
SSucc
::
SNat
n
->
SNat
(
'Succ
n
)
data
SBool
a
where
SFalse
::
SBool
'False
STrue
::
SBool
'True
data
SMaybe
a
where
SNothing
::
SMaybe
'Nothing
SJust
::
Sing
a
->
SMaybe
(
'Just
a
)
type
family
Sing
a
type
instance
Sing
(
a
::
Nat
)
=
SNat
a
type
instance
Sing
(
a
::
Bool
)
=
SBool
a
type
instance
Sing
(
a
::
Maybe
*
)
=
SMaybe
a
-- want to say Maybe k
testsuite/tests/polykinds/all.T
View file @
ffd72d2b
...
...
@@ -17,11 +17,13 @@ test('PolyKinds07', normal, compile_fail, [''])
test
('
PolyKinds12
',
normal
,
compile
,
[''])
test
('
Freeman
',
normal
,
compile_and_run
,
[''])
test
('
MonoidsTF
',
normal
,
compile_and_run
,
[''])
test
('
MonoidsFD
',
normal
,
compile_and_run
,
[''])
test
('
T5798
',
normal
,
compile
,
[''])
test
('
T5770
',
normal
,
compile
,
[''])
test
('
T5771
',
normal
,
compile
,
[''])
test
('
T5717
',
normal
,
compile
,
[''])
test
('
T5862
',
normal
,
compile
,
[''])
test
('
Freeman
',
normal
,
compile_and_run
,
[''])
test
('
MonoidsTF
',
normal
,
compile_and_run
,
[''])
test
('
MonoidsFD
',
normal
,
compile_and_run
,
[''])
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