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