Test Trac #4310
authorSimon Peyton Jones <simonpj@microsoft.com>
Thu, 29 Dec 2011 10:33:39 +0000 (10:33 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Thu, 29 Dec 2011 10:33:39 +0000 (10:33 +0000)
testsuite/tests/typecheck/should_compile/T4310.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_compile/all.T

diff --git a/testsuite/tests/typecheck/should_compile/T4310.hs b/testsuite/tests/typecheck/should_compile/T4310.hs
new file mode 100644 (file)
index 0000000..43b82ca
--- /dev/null
@@ -0,0 +1,11 @@
+{-# LANGUAGE TypeFamilies, RankNTypes, ScopedTypeVariables, KindSignatures #-}
+
+module T4310 where
+import GHC.ST
+
+type family Mutable a :: * -> * -> *
+
+data New v a = New (forall s. ST s (Mutable v s a))
+
+create :: (forall s. ST s (Mutable v s a)) -> New v a
+create = New
index acfec5e..a4ad3cf 100644 (file)
@@ -369,4 +369,5 @@ test('T5655', normal, compile, [''])
 test('T5643', normal, compile, [''])
 test('T5595', normal, compile, [''])
 test('T5676', normal, compile, [''])
+test('T4310', normal, compile, [''])