aboutsummaryrefslogtreecommitdiff
path: root/haddock-library/haddock-library.cabal
blob: 49ec826c0871dcce4b875412a8235877213b73da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
cabal-version:        2.0
name:                 haddock-library
version:              1.6.0
synopsis:             Library exposing some functionality of Haddock.
description:          Haddock is a documentation-generation tool for Haskell
                      libraries. These modules expose some functionality of it
                      without pulling in the GHC dependency. Please note that the
                      API is likely to change so specify upper bounds in your
                      project if you can't release often. For interacting with Haddock
                      itself, see the ‘haddock’ package.
license:              BSD3
license-files:        LICENSE
maintainer:           Alex Biehl <alexbiehl@gmail.com>, Simon Hengel <sol@typeful.net>, Mateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>
homepage:             http://www.haskell.org/haddock/
bug-reports:          https://github.com/haskell/haddock/issues
category:             Documentation
build-type:           Simple
extra-source-files:
  CHANGES.md

library
  default-language:     Haskell2010

  build-depends:
      base         >= 4.5     && < 4.12
    , bytestring   >= 0.9.2.1 && < 0.11
    , containers   >= 0.4.2.1 && < 0.6
    , transformers >= 0.3.0   && < 0.6
    , text         >= 1.2.3.0  && < 1.3
    , parsec       >= 3.1.13.0 && < 3.2

  hs-source-dirs:       src

  exposed-modules:
    Documentation.Haddock.Doc
    Documentation.Haddock.Markup
    Documentation.Haddock.Parser
    Documentation.Haddock.Parser.Monad
    Documentation.Haddock.Types
    Documentation.Haddock.Utf8

  other-modules:
    Documentation.Haddock.Parser.Util

  ghc-options: -funbox-strict-fields -Wall -fwarn-tabs -O2
  if impl(ghc >= 8.0)
    ghc-options: -Wcompat -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances


test-suite spec
  type:             exitcode-stdio-1.0
  default-language: Haskell2010
  main-is:          Spec.hs
  hs-source-dirs:
      test
    , src
  ghc-options: -Wall

  cpp-options:
      -DTEST

  other-modules:
      Documentation.Haddock.Doc
      Documentation.Haddock.Parser
      Documentation.Haddock.Parser.Monad
      Documentation.Haddock.Parser.Util
      Documentation.Haddock.Parser.UtilSpec
      Documentation.Haddock.ParserSpec
      Documentation.Haddock.Types
      Documentation.Haddock.Utf8
      Documentation.Haddock.Utf8Spec

  build-depends:
      base         >= 4.5     && < 4.12
    , base-compat   ^>= 0.9.3
    , bytestring   >= 0.9.2.1 && < 0.11
    , containers   >= 0.4.2.1 && < 0.6
    , transformers   >= 0.3.0   && < 0.6
    , hspec         ^>= 2.4.4
    , QuickCheck    ^>= 2.11
    , text         >= 1.2.3.0  && < 1.3
    , parsec       >= 3.1.13.0 && < 3.2
    , deepseq      >= 1.3     && < 1.5

  build-tool-depends:
    hspec-discover:hspec-discover ^>= 2.4.4

test-suite fixtures
  type:             exitcode-stdio-1.0
  default-language: Haskell2010
  main-is:          Fixtures.hs
  ghc-options:      -Wall -O0
  hs-source-dirs:   fixtures
  build-depends:
      base         >= 4.5     && < 4.12
    , base-compat           ^>= 0.9.3
    , directory             ^>= 1.3.0.2
    , filepath              ^>= 1.4.1.2
    , optparse-applicative  ^>= 0.14.0.0
    , tree-diff             ^>= 0.0.0.1

  -- Depend on the library.
  build-depends:
    haddock-library

source-repository head
  type:     git
  subdir:   haddock-library
  location: https://github.com/haskell/haddock.git