aboutsummaryrefslogtreecommitdiff
path: root/html-test/src/QuantifiedConstraints.hs
diff options
context:
space:
mode:
Diffstat (limited to 'html-test/src/QuantifiedConstraints.hs')
-rw-r--r--html-test/src/QuantifiedConstraints.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/html-test/src/QuantifiedConstraints.hs b/html-test/src/QuantifiedConstraints.hs
new file mode 100644
index 00000000..82dd81e5
--- /dev/null
+++ b/html-test/src/QuantifiedConstraints.hs
@@ -0,0 +1,11 @@
+{-# LANGUAGE QuantifiedConstraints #-}
+module QuantifiedConstraints where
+
+class Foo a where
+ fooed :: a
+
+needsParensAroundContext :: (forall x. Foo (f x)) => f Int
+needsParensAroundContext = fooed
+
+needsNoParensAroundContext :: Foo (f Int) => f Int
+needsNoParensAroundContext = fooed