diff options
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/tcfail105.hs')
-rw-r--r-- | testsuite/tests/typecheck/should_fail/tcfail105.hs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/tcfail105.hs b/testsuite/tests/typecheck/should_fail/tcfail105.hs new file mode 100644 index 0000000000..331e38322b --- /dev/null +++ b/testsuite/tests/typecheck/should_fail/tcfail105.hs @@ -0,0 +1,13 @@ +{-# LANGUAGE ExistentialQuantification #-} + +-- Existential context should quantify over some new type variables +-- +-- Jan07: this is now fine, because we've lifted the restrction +-- that the context on a constructor should mention +-- existential type variables + +module ShouldFail where + +data S m t a = Ok a | Cont (M m t a) +data M m t a = Monad m => M { unM::(m (S m t a))} + |