name:                 haddock-library
version:              1.4.2
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-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.5 && < 4.11
    , bytestring
    , transformers
    , deepseq

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

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

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

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

  cpp-options:
      -DTEST

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

  build-depends:
      base
    , bytestring
    , transformers
    , deepseq

    , base-compat
    , hspec
    , QuickCheck == 2.*

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