packages feed

hdocs-0.5.5.0: hdocs.cabal

name:                hdocs
version:             0.5.5.0
synopsis:            Haskell docs tool
description:
  Tool and library to get docs for installed packages and source files.
  Can return result in JSON format.
  Can dump docs for all installed modules
  .
  @Usage:
  hdocs <module> - get docs for module/file
  hdocs <module> <name> - get docs for name in module/file
  hdocs dump [r] - dump all installed docs, if [r], find docs for reexported declarations

  flags
  --pretty       pretty JSON output
  -g GHC_OPT  --ghc=GHC_OPT  option to pass to GHC
  @
homepage:            https://github.com/mvoidex/hdocs
license:             BSD3
license-file:        LICENSE
author:              Alexandr `Voidex` Ruchkin
maintainer:          voidex@live.com
category:            Development
build-type:          Simple
cabal-version:       >=1.10

source-repository head
  type: git
  location: git://github.com/mvoidex/hdocs.git

library
  hs-source-dirs: src
  ghc-options: -fno-warn-tabs
  default-language: Haskell2010
  exposed-modules:
    HDocs.Base
    HDocs.Haddock
    HDocs.Module
  other-modules:
    HDocs.Compat
    HDocs.Ghc.Compat
  if impl(ghc == 8.10.*)
    build-depends:
      ghc == 8.10.*,
      haddock-api >= 2.24 && < 2.25,
      haddock-library == 1.9.*
  if impl(ghc == 8.8.*)
    build-depends:
      ghc == 8.8.*,
      haddock-api >= 2.23 && < 2.24,
      haddock-library == 1.8.*
  if impl(ghc == 8.6.*)
    build-depends:
      ghc == 8.6.*,
      haddock-api >= 2.21 && < 2.23,
      haddock-library == 1.7.*
  if impl(ghc >= 8.3) && impl(ghc < 8.6)
    build-depends:
      ghc >= 8.3,
      haddock-api >= 2.20.0 && < 2.21.0,
      haddock-library == 1.6.*
  if impl(ghc >= 8.2) && impl(ghc < 8.3)
    build-depends:
      ghc >= 8.2 && < 8.3,
      haddock-api >= 2.18.0 && < 2.20.0,
      haddock-library == 1.4.*
  if impl(ghc >= 8.0) && impl(ghc < 8.2)
    build-depends:
      ghc >= 8.0.0,
      haddock-api >= 2.17.0 && < 2.18.0,
      haddock-library == 1.4.*
  if impl(ghc < 8.0)
    build-depends:
      ghc >= 7.8.1 && < 8.0.0,
      haddock-api >= 2.16.0 && < 2.17.0,
      haddock-library == 1.2.*
  build-depends:
    base >= 4.7 && < 5,
    aeson >= 0.7.0,
    bytestring >= 0.10.0,
    Cabal >= 1.22.2,
    filepath >= 1.3.0,
    ghc-paths >= 0.1.0,
    containers >= 0.5.0,
    network >= 2.4.0,
    process >= 1.2.0,
    text >= 1.1.0,
    mtl >= 2.1.0

executable hdocs
  main-is: hdocs.hs
  hs-source-dirs: tools
  default-language: Haskell2010
  ghc-options: -fno-warn-tabs
  build-depends:
    base >= 4.7 && < 5,
    hdocs,
    aeson >= 0.7.0,
    aeson-pretty >= 0.7.0,
    bytestring >= 0.10.0,
    containers >= 0.5.0,
    filepath >= 1.3.0,
    haddock-api,
    mtl >= 2.1.0,
    network >= 2.4.0,
    text >= 1.1.0

test-suite test
  type: exitcode-stdio-1.0
  main-is: Test.hs
  default-language: Haskell2010
  hs-source-dirs: tests
  ghc-options: -fno-warn-tabs
  other-modules:
    HelpTest
  build-depends:
    base >= 4.7 && < 5,
    hdocs,
    containers >= 0.5.0,
    mtl >= 2.1.0