Test Trac #9211
authorSimon Peyton Jones <simonpj@microsoft.com>
Thu, 30 Oct 2014 11:37:39 +0000 (11:37 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Tue, 4 Nov 2014 10:38:02 +0000 (10:38 +0000)
testsuite/tests/indexed-types/should_compile/T9211.hs [new file with mode: 0644]
testsuite/tests/indexed-types/should_compile/all.T

diff --git a/testsuite/tests/indexed-types/should_compile/T9211.hs b/testsuite/tests/indexed-types/should_compile/T9211.hs
new file mode 100644 (file)
index 0000000..6ba0af4
--- /dev/null
@@ -0,0 +1,10 @@
+{-# LANGUAGE RankNTypes #-}
+{-# LANGUAGE TypeFamilies #-}
+
+module T9211 where
+
+-- foo :: (forall f g. (Functor f) => f a -> f b) -> [a] -> [b]
+foo :: (forall f g. (Functor f, g ~ f) => g a -> g b) -> [a] -> [b]
+foo tr x = tr x
+
+t = foo (fmap not) [True]
index ff45df2..32c42d1 100644 (file)
@@ -247,3 +247,4 @@ test('T9085', normal, compile, [''])
 test('T9316', normal, compile, [''])
 test('red-black-delete', normal, compile, [''])
 test('Sock', normal, compile, [''])
+test('T9211', normal, compile, [''])