[commit: ghc] wip/new-flatten-skolems-Oct14: Test Trac #9211 (e49ce87)
git at git.haskell.org
git at git.haskell.org
Thu Oct 30 12:54:47 UTC 2014
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/new-flatten-skolems-Oct14
Link : http://ghc.haskell.org/trac/ghc/changeset/e49ce87ac6b73c0832b3ed19b68f602698f613e5/ghc
>---------------------------------------------------------------
commit e49ce87ac6b73c0832b3ed19b68f602698f613e5
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date: Thu Oct 30 11:37:39 2014 +0000
Test Trac #9211
>---------------------------------------------------------------
e49ce87ac6b73c0832b3ed19b68f602698f613e5
testsuite/tests/indexed-types/should_compile/T9211.hs | 10 ++++++++++
testsuite/tests/indexed-types/should_compile/all.T | 1 +
2 files changed, 11 insertions(+)
diff --git a/testsuite/tests/indexed-types/should_compile/T9211.hs b/testsuite/tests/indexed-types/should_compile/T9211.hs
new file mode 100644
index 0000000..6ba0af4
--- /dev/null
+++ b/testsuite/tests/indexed-types/should_compile/T9211.hs
@@ -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]
diff --git a/testsuite/tests/indexed-types/should_compile/all.T b/testsuite/tests/indexed-types/should_compile/all.T
index ff45df2..32c42d1 100644
--- a/testsuite/tests/indexed-types/should_compile/all.T
+++ b/testsuite/tests/indexed-types/should_compile/all.T
@@ -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, [''])
More information about the ghc-commits
mailing list