summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_compile/tc208.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/typecheck/should_compile/tc208.hs')
-rw-r--r--testsuite/tests/typecheck/should_compile/tc208.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_compile/tc208.hs b/testsuite/tests/typecheck/should_compile/tc208.hs
new file mode 100644
index 0000000000..0bfb1d4e81
--- /dev/null
+++ b/testsuite/tests/typecheck/should_compile/tc208.hs
@@ -0,0 +1,13 @@
+{-# LANGUAGE ImplicitParams, Rank2Types #-}
+
+-- This program failed to typecheck in an early version of
+-- GHC with impredicative polymorphism, but it was fixed by
+-- doing pre-subsumption in the subsumption check.
+-- Trac bug #821
+
+module ShouldCompile where
+
+type PPDoc = (?env :: Int) => Char
+
+f :: Char -> PPDoc
+f = succ