summaryrefslogtreecommitdiff
path: root/testsuite/tests/haddock/should_compile_noflag_haddock/haddockC035.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/haddock/should_compile_noflag_haddock/haddockC035.hs')
-rw-r--r--testsuite/tests/haddock/should_compile_noflag_haddock/haddockC035.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/haddock/should_compile_noflag_haddock/haddockC035.hs b/testsuite/tests/haddock/should_compile_noflag_haddock/haddockC035.hs
new file mode 100644
index 0000000000..25ed2acb83
--- /dev/null
+++ b/testsuite/tests/haddock/should_compile_noflag_haddock/haddockC035.hs
@@ -0,0 +1,9 @@
+{-# LANGUAGE GADTs #-}
+
+module Hi where
+
+data Hi where
+ Hi :: () -- ^ This is a comment on the '()' field of 'Hi'
+ -> Int
+ -> String -- ^ This is a comment on the 'String' field of 'Hi'
+ -> Hi -- ^ This is a comment on the return type of 'Hi'