summaryrefslogtreecommitdiff
path: root/testsuite/tests/haddock/should_compile_flag_haddock/haddockA032.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/haddock/should_compile_flag_haddock/haddockA032.hs')
-rw-r--r--testsuite/tests/haddock/should_compile_flag_haddock/haddockA032.hs8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/tests/haddock/should_compile_flag_haddock/haddockA032.hs b/testsuite/tests/haddock/should_compile_flag_haddock/haddockA032.hs
new file mode 100644
index 0000000000..b772ec1de3
--- /dev/null
+++ b/testsuite/tests/haddock/should_compile_flag_haddock/haddockA032.hs
@@ -0,0 +1,8 @@
+module ShouldCompile where
+
+data R a = R {
+ field1 :: a -- | comment for field2
+ , field2 :: a
+ , field3 :: a -- ^ comment for field3
+ , {-| comment for field4 -} field4 :: a
+}