File: path.cabal

package info (click to toggle)
haskell-path 0.9.6-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 432 kB
  • sloc: haskell: 3,246; makefile: 3
file content (193 lines) | stat: -rw-r--r-- 5,506 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
cabal-version:       3.0
name:                path
version:             0.9.6
x-revision: 1
synopsis:            Support for well-typed paths
description:         Support for well-typed paths.
license:             BSD-3-Clause
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
tested-with:         GHC==9.2.8, GHC==9.4.8, GHC==9.6.6, GHC==9.8.2, GHC==9.10.1
extra-source-files:  README.md
                   , CHANGELOG
                   , os-string-compat/System/OsString/Compat/Include.hs
                   , src/Path/Include.hs
                   , src/Path/Internal/Include.hs
                   , src/OsPath/Include.hs
                   , src/OsPath/Internal/Include.hs
                   , test/Common/Include.hs
                   , test-ospath/Common/Include.hs
                   , validity-test-ospath/Include.hs
                   , validity-test-ospath/OsPath/Gen/Include.hs

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

flag os-string
  description:        Use an older version of the os-string library.
  manual:             False
  default:            False

common language
  ghc-options:        -Wall

  if flag(dev)
    ghc-options:      -Wcompat
                      -Werror
                      -Wincomplete-record-updates
                      -Wincomplete-uni-patterns
                      -Wnoncanonical-monad-instances

  default-language:  Haskell2010

common rts
  ghc-options:        -O2
                      -threaded
                      -rtsopts

library
  import: language

  hs-source-dirs:    src

  exposed-modules:   Path
                   , Path.Posix
                   , Path.Windows
                   , Path.Internal
                   , Path.Internal.Posix
                   , Path.Internal.Windows
                   , OsPath
                   , OsPath.Posix
                   , OsPath.Windows
                   , OsPath.Internal
                   , OsPath.Internal.Posix
                   , OsPath.Internal.Windows

  build-depends:     aeson      >= 1.0.0.0
                   , base       >= 4.12    && < 5
                   , deepseq
                   , exceptions >= 0.4     && < 0.11
                   , hashable   >= 1.2     && < 1.6
                   , path:os-string-compat
                   , text
                   , template-haskell

  if flag(os-string)
    build-depends:   filepath   >= 1.5
  else
    build-depends:   filepath   >= 1.4.100.0 && <1.5

library os-string-compat
  import: language

  hs-source-dirs:    os-string-compat
  visibility:        private

  exposed-modules:   System.OsString.Compat.Posix
                   , System.OsString.Compat.Windows

  build-depends:     base       >= 4.12    && < 5

  if flag(os-string)
    build-depends:   os-string  >= 2.0.0
  else
    build-depends:   filepath   >= 1.4.100.0

test-suite test
  import: language
  import: rts

  type:              exitcode-stdio-1.0
  main-is:           Main.hs

  hs-source-dirs:    test

  other-modules:     Posix
                   , Windows
                   , Common.Posix
                   , Common.Windows
                   , TH.Posix
                   , TH.Windows

  build-depends:     aeson
                   , base
                   , bytestring
                   , exceptions
                   , filepath
                   , hspec      >= 2.0     && < 3
                   , path
                   , template-haskell

test-suite test-ospath
  import: language
  import: rts

  type:              exitcode-stdio-1.0
  main-is:           Main.hs
  hs-source-dirs:    test-ospath

  other-modules:     Posix
                   , Windows
                   , Common.Posix
                   , Common.Windows
                   , TH.Posix
                   , TH.Windows

  build-depends:     base
                   , exceptions
                   , filepath
                   , hspec      >= 2.0     && < 3
                   , path
                   , path:os-string-compat
                   , template-haskell

test-suite validity-test
  import: language
  import: rts

  type:              exitcode-stdio-1.0
  main-is:           Main.hs
  hs-source-dirs:    validity-test

  other-modules:     Path.Gen

  build-depends:     QuickCheck
                   , base
                   , filepath
                   , genvalidity >= 1.0
                   , genvalidity-hspec >= 0.7
                   , hspec      >= 2.0     && < 3
                   , path

test-suite validity-test-ospath
  import: language
  import: rts

  type:              exitcode-stdio-1.0
  main-is:           Main.hs
  hs-source-dirs:    validity-test-ospath

  other-modules:     OsPath.Gen.Posix
                   , OsPath.Gen.Windows
                   , Posix
                   , Windows

  build-depends:     QuickCheck
                   , base
                   , filepath
                   , genvalidity >= 1.0
                   , genvalidity-hspec >= 0.7
                   , hspec      >= 2.0     && < 3
                   , path
                   , path:os-string-compat
                   , validity-bytestring >=0.4.1.0

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