From 3dea107c3eb97b885a1059519626a9478e50d3ad Mon Sep 17 00:00:00 2001 From: Simon Peyton Jones Date: Tue, 13 Mar 2012 23:43:51 +0000 Subject: [PATCH] Test Trac #5937 --- testsuite/tests/polykinds/T5937.hs | 6 ++++++ testsuite/tests/polykinds/all.T | 1 + 2 files changed, 7 insertions(+) create mode 100644 testsuite/tests/polykinds/T5937.hs 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) diff --git a/testsuite/tests/polykinds/all.T b/testsuite/tests/polykinds/all.T index 5767f8c9aa..d415a76dc8 100644 --- a/testsuite/tests/polykinds/all.T +++ b/testsuite/tests/polykinds/all.T @@ -29,4 +29,5 @@ test('T5862', normal, compile, ['']) test('T5912', normal, compile, ['']) test('T5881', normal, run_command, ['$MAKE -s --no-print-directory T5881']) test('T5716', normal, compile_fail, ['']) +test('T5937', normal, compile, ['']) -- GitLab