summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-api/annotations/CommentsTest.hs
blob: c6cf79c5da9090da3edc73f27cafaf2b41ed8934 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{-# LANGUAGE DeriveFoldable #-}
module CommentsTest (foo) where
{-
An opening comment
  {- with a nested one -}
  {-# nested PRAGMA #-}
-}

import qualified Data.List as DL

-- | The function @foo@ does blah
foo = let
        a = 1
        b = 2 -- value 2
      in a + b