summaryrefslogtreecommitdiff
path: root/testsuite/tests/haddock/should_compile_flag_haddock/haddockA037.hs
blob: 4571e09583ba73e9446eb523df9bee1b5815055c (plain)
1
2
3
4
5
6
7
8
9
10
module UnamedConstructorFields where

data A = A
data B = B
data C = C

-- Haddock on 'A' prevents the haddock on 'C' from being applied to 'MkFoo'
data Foo = MkFoo A -- ^ 'A' has a comment
                 B -- This doesn't
                 C -- ^ 'C' has a comment