File: path.cabal

package info (click to toggle)
haskell-path 0.9.5-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 244 kB
  • sloc: haskell: 1,669; makefile: 5
file content (96 lines) | stat: -rw-r--r-- 3,256 bytes parent folder | download
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name:                path
version:             0.9.5
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–2018 FP Complete
category:            System, Filesystem
build-type:          Simple
cabal-version:       1.18
tested-with:         GHC==8.6.5, GHC==8.8.4, GHC==8.10.1
extra-source-files:  README.md
                   , CHANGELOG
                   , src/Path/Include.hs
                   , src/Path/Internal/Include.hs
                   , test/Common/Include.hs

flag dev
  description:        Turn on development settings.
  manual:             True
  default:            False

library
  hs-source-dirs:    src
  exposed-modules:   Path
                   , Path.Posix
                   , Path.Windows
                   , Path.Internal
                   , Path.Internal.Posix
                   , Path.Internal.Windows
  build-depends:     aeson
                   , base       >= 4.12     && < 5
                   , deepseq
                   , exceptions >= 0.4     && < 0.11
                   , filepath   < 1.2.0.1  || >= 1.3
                   , hashable   >= 1.2     && < 1.5
                   , text
                   , template-haskell
  if flag(dev)
    ghc-options:      -Wall -Werror
  else
    ghc-options:      -O2 -Wall
  if flag(dev)
    ghc-options:      -Wcompat
                      -Wincomplete-record-updates
                      -Wincomplete-uni-patterns
                      -Wnoncanonical-monad-instances
  default-language:  Haskell2010

test-suite test
  type:              exitcode-stdio-1.0
  main-is:           Main.hs
  other-modules:     Posix
                   , Windows
                   , Common.Posix
                   , Common.Windows
  hs-source-dirs:    test
  build-depends:     aeson
                   , base       >= 4.12     && < 5
                   , bytestring
                   , filepath   < 1.2.0.1  || >= 1.3
                   , hspec      >= 2.0     && < 3
                   , mtl        >= 2.0     && < 3
                   , path
                   , template-haskell
  if flag(dev)
    ghc-options:      -Wall -Werror
  else
    ghc-options:      -O2 -Wall
  default-language:  Haskell2010

test-suite validity-test
  type:              exitcode-stdio-1.0
  main-is:           ValidityTest.hs
  other-modules:     Path.Gen
  hs-source-dirs:    test
  build-depends:     QuickCheck
                   , aeson
                   , base       >= 4.12 && < 5
                   , bytestring
                   , filepath   < 1.2.0.1  || >= 1.3
                   , genvalidity >= 1.0
                   , genvalidity-property >= 0.4
                   , genvalidity-hspec >= 0.7
                   , hspec      >= 2.0     && < 3
                   , mtl        >= 2.0     && < 3
                   , path
                   , validity   >= 0.8.0.0
  default-language:  Haskell2010
  ghc-options: -threaded -rtsopts

source-repository head
  type:              git
  location:          https://github.com/commercialhaskell/path.git