about summary refs log tree commit diff
path: root/third_party/bazel/rules_haskell/tests/haddock/LibA.hs
blob: 252c90ccc6d9f558d2a6a91d7651bf427a9526d3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
-- | "LibA" header
{-# LANGUAGE CPP             #-}
{-# LANGUAGE TemplateHaskell #-}

#include "header.h"

module LibA where

import LibA.A (a)
import Deep (deep_lib)

-- | 'A' declaration.
data A =
  -- | 'A' constructor.
  A

-- | Doc for 'f' using 'a' and 'deep_lib'.
f :: Int
f = const $a deep_lib + MAGIC_NUMBER