[commit: ghc] master: Test Trac #9211 (4723a0e)

git at git.haskell.org git at git.haskell.org
Tue Nov 4 10:38:46 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/4723a0e39b5eb7a47457696aceb67f8e230a42e6/ghc

>---------------------------------------------------------------

commit 4723a0e39b5eb7a47457696aceb67f8e230a42e6
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Thu Oct 30 11:37:39 2014 +0000

    Test Trac #9211


>---------------------------------------------------------------

4723a0e39b5eb7a47457696aceb67f8e230a42e6
 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