File path.cabal of Package ghc-path

name:                path
version:             0.5.12
x-revision: 1
synopsis:            Support for well-typed paths
description:         Support for well-typed paths.
license:             BSD3
license-file:        LICENSE
author:              Chris Done <chrisdone@fpcomplete.com>
maintainer:          Chris Done <chrisdone@fpcomplete.com>
copyright:           2015–2016 FP Complete
category:            Filesystem
build-type:          Simple
cabal-version:       >=1.8
extra-source-files:  README.md, CHANGELOG

flag validity
  manual: True
  default: False
  description: Enable validity tests.

library
  hs-source-dirs:    src/
  ghc-options:       -Wall -O2
  exposed-modules:   Path, Path.Internal
  build-depends:     base >= 4 && <5
                   , exceptions
                   , filepath < 1.2.0.1 || >= 1.3
                   , template-haskell
                   , deepseq
                   , aeson
                   , hashable >= 1.2 && < 1.3

test-suite test
    type: exitcode-stdio-1.0
    main-is: Main.hs
    hs-source-dirs: test
    build-depends: HUnit
                 , QuickCheck
                 , aeson
                 , base
                 , bytestring
                 , filepath
                 , hspec
                 , mtl
                 , path

test-suite validity-test
    if !flag(validity)
      buildable: False
    type: exitcode-stdio-1.0
    main-is: ValidityTest.hs
    other-modules: Path.Gen
    hs-source-dirs: test
    if flag(validity)
      build-depends: HUnit
                   , QuickCheck
                   , aeson
                   , base >= 4.9 && < 5
                   , bytestring
                   , filepath
                   , genvalidity >= 0.3 && < 0.4
                   , genvalidity-hspec >= 0.3 && < 0.4
                   , hspec
                   , mtl
                   , path
                   , validity >= 0.3.1.1 && < 0.4

source-repository head
    type:     git
    location: https://github.com/commercialhaskell/path.git
openSUSE Build Service is sponsored by