diff options
Diffstat (limited to 'testsuite/tests/quantified-constraints/T22216a.hs')
-rw-r--r-- | testsuite/tests/quantified-constraints/T22216a.hs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/tests/quantified-constraints/T22216a.hs b/testsuite/tests/quantified-constraints/T22216a.hs new file mode 100644 index 0000000000..f8df47d73d --- /dev/null +++ b/testsuite/tests/quantified-constraints/T22216a.hs @@ -0,0 +1,14 @@ +{-# LANGUAGE QuantifiedConstraints, UndecidableInstances #-} +{-# LANGUAGE RankNTypes #-} +{-# LANGUAGE NoImplicitPrelude #-} + +module T22216a where + +class Eq a +class Eq a => Ord a + +class (forall b. Eq b => Eq (f b)) => Eq1 f +class (Eq1 f, forall b. Ord b => Ord (f b)) => Ord1 f + +foo :: (Ord a, Ord1 f) => (Eq (f a) => r) -> r +foo r = r |