-- Initial docvim.cabal generated by cabal init.  For further
-- documentation, see http://haskell.org/cabal/users-guide/

-- The name of the package.
name:                docvim

-- The package version.  See the Haskell package versioning policy (PVP)
-- for standards guiding when and how versions should be incremented.
-- http://www.haskell.org/haskellwiki/Package_versioning_policy
-- PVP summary:      +-+------- breaking API changes
--                   | | +----- non-breaking API additions
--                   | | | +--- code changes with no API change
version:             0.3.1.1

-- A short (one-line) description of the package.
synopsis:            Documentation generator for Vim plug-ins

-- A longer description of the package.
description:         Produces Vim help and HTML (via Markdown) documentation.

-- URL for the project homepage or repository.
homepage:            https://github.com/wincent/docvim

-- The license under which the package is released.
license:             MIT

-- The file containing the license text.
license-file:        LICENSE.md

-- The package author(s).
author:              Greg Hurrell

-- An email address to which users can send suggestions, bug reports, and
-- patches.
maintainer:          greg@hurrell.net

-- A copyright notice.
copyright:           2015-present Greg Hurrell

category:            Development

build-type:          Simple

-- Extra files to be distributed with the package, such as examples or a
-- README.
extra-source-files:  README.md

-- Constraint on the version of Cabal needed to build this package.
cabal-version:       >=1.10

source-repository head
  type:     git
  location: https://github.com/wincent/docvim.git

source-repository this
  type:     git
  location: https://github.com/wincent/docvim.git
  tag:      0.3.1.1

executable docvim
  -- .hs or .lhs file containing the Main module.
  main-is:             Main.hs

  -- Modules included in this executable, other than Main.
  -- other-modules:

  -- LANGUAGE extensions used by modules in this package.
  -- other-extensions:

  -- Other library packages from which modules are imported.
  build-depends:       base >=4.8 && <4.10
               ,       docvim

  ghc-options:         -W -Wall

  -- Directories containing source files.
  hs-source-dirs:      src

  -- Base language which the package is written in.
  default-language:    Haskell2010

library
  build-depends:    base
               ,    containers
               ,    directory
               ,    filepath

                    -- Third party
               ,    dlist
               ,    lens
               ,    mtl
               ,    optparse-applicative
               ,    parsec
               ,    pretty-show
               ,    split
  default-language:    Haskell2010
  exposed-modules:  Text.Docvim.AST
                 ,  Text.Docvim.CLI
                 ,  Text.Docvim.Compile
                 ,  Text.Docvim.Optimize
                 ,  Text.Docvim.Options
                 ,  Text.Docvim.Parse
                 ,  Text.Docvim.Printer.Markdown
                 ,  Text.Docvim.Printer.Vim
                 ,  Text.Docvim.ReadDir
                 ,  Text.Docvim.Util
                 ,  Text.Docvim.Visitor
                 ,  Text.Docvim.Visitor.Command
                 ,  Text.Docvim.Visitor.Commands
                 ,  Text.Docvim.Visitor.Footer
                 ,  Text.Docvim.Visitor.Function
                 ,  Text.Docvim.Visitor.Functions
                 ,  Text.Docvim.Visitor.Heading
                 ,  Text.Docvim.Visitor.Mapping
                 ,  Text.Docvim.Visitor.Mappings
                 ,  Text.Docvim.Visitor.Option
                 ,  Text.Docvim.Visitor.Options
                 ,  Text.Docvim.Visitor.Plugin
                 ,  Text.Docvim.Visitor.Section
                 ,  Text.Docvim.Visitor.Symbol
  other-modules:    Paths_docvim
  ghc-options:      -W -Wall
  hs-source-dirs:   lib

test-suite hlint
  build-depends:    base
               ,    hlint
  default-language: Haskell2010
  ghc-options:      -W -Wall
  hs-source-dirs:   tests
  main-is:          HLint.hs
  type:             exitcode-stdio-1.0

test-suite tasty
  build-depends:    base >= 4 && < 5
               ,    bytestring
               ,    containers
               ,    deepseq
               ,    directory
               ,    dlist
               ,    docvim
               ,    filepath
               ,    lens
               ,    mtl
               ,    parsec
               ,    pretty-show
               ,    process
               ,    split
               ,    tasty
               ,    tasty-golden
               ,    tasty-hunit
               ,    temporary
  other-modules:     Text.Docvim.AST
               ,     Text.Docvim.Compile
               ,     Text.Docvim.Optimize
               ,     Text.Docvim.Parse
               ,     Text.Docvim.Printer.Markdown
               ,     Text.Docvim.Printer.Vim
               ,     Text.Docvim.Util
               ,     Text.Docvim.Visitor
               ,     Text.Docvim.Visitor.Command
               ,     Text.Docvim.Visitor.Commands
               ,     Text.Docvim.Visitor.Footer
               ,     Text.Docvim.Visitor.Function
               ,     Text.Docvim.Visitor.Functions
               ,     Text.Docvim.Visitor.Heading
               ,     Text.Docvim.Visitor.Mapping
               ,     Text.Docvim.Visitor.Mappings
               ,     Text.Docvim.Visitor.Option
               ,     Text.Docvim.Visitor.Options
               ,     Text.Docvim.Visitor.Plugin
               ,     Text.Docvim.Visitor.Section
               ,     Text.Docvim.Visitor.Symbol
  default-language: Haskell2010
  ghc-options:      -W -Wall
  hs-source-dirs:   tests
                ,   lib
  main-is:          Tasty.hs
  type:             exitcode-stdio-1.0