summaryrefslogtreecommitdiff
path: root/tests/examples/ghc86/haddockA026.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/examples/ghc86/haddockA026.hs')
-rw-r--r--tests/examples/ghc86/haddockA026.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/examples/ghc86/haddockA026.hs b/tests/examples/ghc86/haddockA026.hs
new file mode 100644
index 0000000..b3f9f0c
--- /dev/null
+++ b/tests/examples/ghc86/haddockA026.hs
@@ -0,0 +1,10 @@
+{-# OPTIONS_GHC -fno-warn-redundant-constraints #-}
+{-# LANGUAGE RankNTypes #-}
+
+module ShouldCompile where
+
+test :: (Eq a) => [a] -- ^ doc1
+ -> forall b . [b] {-^ doc2 -}
+ -> [a] -- ^ doc3
+test xs ys = xs
+