aboutsummaryrefslogtreecommitdiff
path: root/haddock-library/haddock-library.cabal
blob: 8567312a61ae0d6dfc8c4a73cbe2fe32a4181b16 (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
name:                 haddock-library
version:              1.0.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.
license:              BSD3
license-file:         LICENSE
maintainer:           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
cabal-version:        >= 1.10
stability:            experimental

library
  default-language:     Haskell2010

  build-depends:
    base >= 4.3 && < 4.8,
    bytestring,
    deepseq

  hs-source-dirs:       src, vendor/attoparsec-0.10.4.0
  ghc-options:          -funbox-strict-fields -Wall -fwarn-tabs -O2

  exposed-modules:
    Documentation.Haddock.Parser
    Documentation.Haddock.Types
    Documentation.Haddock.Doc

  other-modules:
    Data.Attoparsec
    Data.Attoparsec.ByteString
    Data.Attoparsec.ByteString.Char8
    Data.Attoparsec.Combinator
    Data.Attoparsec.Number
    Data.Attoparsec.ByteString.FastSet
    Data.Attoparsec.ByteString.Internal
    Data.Attoparsec.Internal
    Data.Attoparsec.Internal.Types
    Documentation.Haddock.Utf8
    Documentation.Haddock.Parser.Util

test-suite spec
  type:             exitcode-stdio-1.0
  default-language: Haskell2010
  main-is:          Spec.hs
  hs-source-dirs:
      test
    , src
    , vendor/attoparsec-0.10.4.0

  ghc-options: -Wall

  cpp-options:
      -DTEST

  other-modules:
      Documentation.Haddock.ParserSpec
      Documentation.Haddock.Utf8Spec
      Documentation.Haddock.Parser.UtilSpec

  build-depends:
      base
    , base-compat
    , hspec
    , bytestring
    , deepseq
    , QuickCheck == 2.*

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