summaryrefslogtreecommitdiff
path: root/testsuite/tests/polykinds/T5937.hs
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2012-03-13 23:43:51 +0000
committerSimon Peyton Jones <simonpj@microsoft.com>2012-03-13 23:43:51 +0000
commit8fe929f0c43b98e52f832ff223ee6d251bb0bae6 (patch)
tree9731b83e91aa31225abf9c658b2743f3819edd21 /testsuite/tests/polykinds/T5937.hs
parent470382ed5ef62f4cfa56b23d03d21a60c01ee927 (diff)
downloadhaskell-8fe929f0c43b98e52f832ff223ee6d251bb0bae6.tar.gz
Test Trac #5937
Diffstat (limited to 'testsuite/tests/polykinds/T5937.hs')
-rw-r--r--testsuite/tests/polykinds/T5937.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/tests/polykinds/T5937.hs b/testsuite/tests/polykinds/T5937.hs
new file mode 100644
index 0000000000..20bc59e6f1
--- /dev/null
+++ b/testsuite/tests/polykinds/T5937.hs
@@ -0,0 +1,6 @@
+{-# LANGUAGE PolyKinds, KindSignatures, DataKinds, GADTs #-}
+module T5937 where
+
+data SMaybe :: (k -> *) -> Maybe k -> * where
+ SNothing :: SMaybe s 'Nothing
+ SJust :: s a -> SMaybe s ('Just a)