summaryrefslogtreecommitdiff
path: root/testsuite/tests/parser/should_compile/DumpParsedAstComments.hs
blob: 62dc878213ccbe91a9163067b8b1a6ad9d8a98a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{-# LANGUAGE Haskell2010 #-}
{-
  Block comment at the beginning
  -}
module DumpParsedAstComments where

-- Other comment

-- comment 1 for foo
-- comment 2 for foo
foo = do
  -- normal comment
  1

-- | Haddock comment
main = putStrLn "hello"