-
Notifications
You must be signed in to change notification settings - Fork 3
/
hpack-dhall.cabal
300 lines (291 loc) · 10.7 KB
/
hpack-dhall.cabal
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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
cabal-version: 1.12
-- This file has been generated from package.dhall by hpack version 0.36.0.
--
-- see: https://github.com/sol/hpack
name: hpack-dhall
version: 0.5.8
synopsis: hpack's dhalling
description: Use hpack phrasing in dhall to write cabal files.
.
There are two main reasons why you'd use hpack-dhall, convenience and safety.
.
Get the convenience of hpack. Don't bother to state what can be inferred or
defaulted, easing the burden of completing a package description by hand. For
example `other-modules` can be inferred by taking the set difference between
modules on disk and the set of `exposed-modules`.
.
Get the safety of dhall's programmable configuration: typed fields, safe imports
and functions.
category: Development
homepage: https://github.com/cabalism/hpack-dhall#readme
bug-reports: https://github.com/cabalism/hpack-dhall/issues
maintainer: Phil de Joux <[email protected]>
copyright: © 2018 - 2024 Phil de Joux, © 2018 - 2024 Block Scope Limited
license: BSD3
license-file: LICENSE
build-type: Simple
tested-with:
GHC == 9.2.8, GHC == 9.4.8, GHC == 9.6.5, GHC == 9.8.2
extra-source-files:
package.dhall
changelog.md
test-suite-golden/test-files/key/empty-inferred/package.dhall
test-suite-golden/test-files/key/empty-package.dhall
test-suite-golden/test-files/key/import-local/package.dhall
test-suite-golden/test-files/key/import-relative/package.dhall
test-suite-golden/test-files/key/when-dependencies.dhall
test-suite-golden/test-files/key/with-GHC2021.dhall
test-suite-golden/test-files/real-world/hpack/hpack.dhall
test-suite-golden/test-files/real-world/stack/stack.dhall
test-suite-golden/test-files/key/import-local/name.dhl
test-suite-golden/test-files/key/import-relative.dhl
test-suite-golden/test-files/key/empty-inferred/empty-inferred.cabal
test-suite-golden/test-files/key/empty-inferred/package.yaml.cabal
test-suite-golden/test-files/key/empty-package.cabal
test-suite-golden/test-files/key/empty-package.yaml.cabal
test-suite-golden/test-files/key/import-local/import-local.cabal
test-suite-golden/test-files/key/import-local/package.yaml.cabal
test-suite-golden/test-files/key/import-relative/import-relative.cabal
test-suite-golden/test-files/key/import-relative/package.yaml.cabal
test-suite-golden/test-files/key/when-dependencies.cabal
test-suite-golden/test-files/key/when-dependencies.yaml.cabal
test-suite-golden/test-files/key/with-GHC2021.cabal
test-suite-golden/test-files/key/with-GHC2021.yaml.cabal
test-suite-golden/test-files/real-world/hpack/hpack.cabal
test-suite-golden/test-files/real-world/hpack/hpack.yaml.cabal
test-suite-golden/test-files/real-world/stack/stack.cabal
test-suite-golden/test-files/real-world/stack/stack.yaml.cabal
test-suite-golden/test-files/key/empty-inferred/package.json
test-suite-golden/test-files/key/empty-package.json
test-suite-golden/test-files/key/import-local/package.json
test-suite-golden/test-files/key/import-relative/package.json
test-suite-golden/test-files/key/when-dependencies.json
test-suite-golden/test-files/key/with-GHC2021.json
test-suite-golden/test-files/real-world/hpack/hpack.json
test-suite-golden/test-files/real-world/stack/stack.json
test-suite-golden/test-files/key/empty-inferred/package.yaml
test-suite-golden/test-files/key/empty-package.yaml
test-suite-golden/test-files/key/import-local/package.yaml
test-suite-golden/test-files/key/import-relative/package.yaml
test-suite-golden/test-files/key/when-dependencies.yaml
test-suite-golden/test-files/key/with-GHC2021.yaml
test-suite-golden/test-files/real-world/hpack/hpack.yaml
test-suite-golden/test-files/real-world/hpack/package.yaml
test-suite-golden/test-files/real-world/stack/package.yaml
test-suite-golden/test-files/real-world/stack/stack.yaml
test-suite-golden/test-files/key/empty-inferred/empty-inferred.cabal.golden
test-suite-golden/test-files/key/empty-inferred/package.dhall-1.32.golden
test-suite-golden/test-files/key/empty-inferred/package.dhall-1.34.golden
test-suite-golden/test-files/key/empty-inferred/package.json.golden
test-suite-golden/test-files/key/empty-inferred/package.yaml.golden
test-suite-golden/test-files/key/empty-package.cabal.golden
test-suite-golden/test-files/key/empty-package.dhall-1.32.golden
test-suite-golden/test-files/key/empty-package.dhall-1.34.golden
test-suite-golden/test-files/key/empty-package.json.golden
test-suite-golden/test-files/key/empty-package.yaml.golden
test-suite-golden/test-files/key/import-local/import-local.cabal.golden
test-suite-golden/test-files/key/import-local/package.dhall-1.32.golden
test-suite-golden/test-files/key/import-local/package.dhall-1.34.golden
test-suite-golden/test-files/key/import-local/package.json.golden
test-suite-golden/test-files/key/import-local/package.yaml.golden
test-suite-golden/test-files/key/import-relative/import-relative.cabal.golden
test-suite-golden/test-files/key/import-relative/package.dhall-1.32.golden
test-suite-golden/test-files/key/import-relative/package.dhall-1.34.golden
test-suite-golden/test-files/key/import-relative/package.json.golden
test-suite-golden/test-files/key/import-relative/package.yaml.golden
test-suite-golden/test-files/key/when-dependencies.cabal.golden
test-suite-golden/test-files/key/when-dependencies.dhall-1.32.golden
test-suite-golden/test-files/key/when-dependencies.dhall-1.34.golden
test-suite-golden/test-files/key/when-dependencies.json.golden
test-suite-golden/test-files/key/when-dependencies.yaml.golden
test-suite-golden/test-files/key/with-GHC2021.cabal.golden
test-suite-golden/test-files/key/with-GHC2021.dhall-1.34.golden
test-suite-golden/test-files/key/with-GHC2021.json.golden
test-suite-golden/test-files/key/with-GHC2021.yaml.golden
test-suite-golden/test-files/real-world/hpack/hpack.cabal.golden
test-suite-golden/test-files/real-world/hpack/hpack.dhall-1.32.golden
test-suite-golden/test-files/real-world/hpack/hpack.dhall-1.34.golden
test-suite-golden/test-files/real-world/hpack/hpack.json.golden
test-suite-golden/test-files/real-world/hpack/hpack.yaml.golden
test-suite-golden/test-files/real-world/stack/stack.cabal.golden
test-suite-golden/test-files/real-world/stack/stack.dhall-1.32.golden
test-suite-golden/test-files/real-world/stack/stack.dhall-1.34.golden
test-suite-golden/test-files/real-world/stack/stack.json.golden
test-suite-golden/test-files/real-world/stack/stack.yaml.golden
source-repository head
type: git
location: https://github.com/cabalism/hpack-dhall
library
exposed-modules:
Hpack.Dhall
Hpack.Fields
other-modules:
Paths_hpack_dhall
hs-source-dirs:
library
ghc-options: -Wall -Wincomplete-uni-patterns -Wcompat -Widentities -Wredundant-constraints -fhide-source-paths
build-depends:
aeson
, aeson-pretty
, base >=4.13 && <5
, bytestring
, dhall >=1.41.1
, dhall-json >=1.7.10
, filepath
, hpack ==0.36.*
, megaparsec >=9.2
, microlens
, prettyprinter
, text
, transformers
, yaml
default-language: Haskell2010
executable dhall-hpack-cabal
main-is: CabalMain.hs
other-modules:
Hpack.Dhall
Hpack.Fields
Options
Paths_hpack_dhall
hs-source-dirs:
library
exe/options
exe/dhall-hpack-cabal
ghc-options: -Wall -Wincomplete-uni-patterns -Wcompat -Widentities -Wredundant-constraints -fhide-source-paths
build-depends:
aeson
, aeson-pretty
, base >=4.13 && <5
, bytestring
, dhall >=1.41.1
, dhall-json >=1.7.10
, filepath
, hpack ==0.36.*
, megaparsec >=9.2
, microlens
, optparse-applicative
, prettyprinter
, text
, transformers
, yaml
default-language: Haskell2010
executable dhall-hpack-dhall
main-is: DhallMain.hs
other-modules:
Hpack.Dhall
Hpack.Fields
Options
Paths_hpack_dhall
hs-source-dirs:
library
exe/options
exe/dhall-hpack-dhall
ghc-options: -Wall -Wincomplete-uni-patterns -Wcompat -Widentities -Wredundant-constraints -fhide-source-paths
build-depends:
aeson
, aeson-pretty
, base >=4.13 && <5
, bytestring
, dhall >=1.41.1
, dhall-json >=1.7.10
, filepath
, hpack ==0.36.*
, megaparsec >=9.2
, microlens
, optparse-applicative
, prettyprinter
, text
, transformers
, yaml
default-language: Haskell2010
executable dhall-hpack-json
main-is: JsonMain.hs
other-modules:
Hpack.Dhall
Hpack.Fields
Options
Paths_hpack_dhall
hs-source-dirs:
library
exe/options
exe/dhall-hpack-json
ghc-options: -Wall -Wincomplete-uni-patterns -Wcompat -Widentities -Wredundant-constraints -fhide-source-paths
build-depends:
aeson
, aeson-pretty
, base >=4.13 && <5
, bytestring
, dhall >=1.41.1
, dhall-json >=1.7.10
, filepath
, hpack ==0.36.*
, megaparsec >=9.2
, microlens
, optparse-applicative
, prettyprinter
, text
, transformers
, yaml
default-language: Haskell2010
executable dhall-hpack-yaml
main-is: YamlMain.hs
other-modules:
Hpack.Dhall
Hpack.Fields
Options
Paths_hpack_dhall
hs-source-dirs:
library
exe/options
exe/dhall-hpack-yaml
ghc-options: -Wall -Wincomplete-uni-patterns -Wcompat -Widentities -Wredundant-constraints -fhide-source-paths
build-depends:
aeson
, aeson-pretty
, base >=4.13 && <5
, bytestring
, dhall >=1.41.1
, dhall-json >=1.7.10
, filepath
, hpack ==0.36.*
, megaparsec >=9.2
, microlens
, optparse-applicative
, prettyprinter
, text
, transformers
, yaml
default-language: Haskell2010
test-suite golden
type: exitcode-stdio-1.0
main-is: Golden.hs
other-modules:
Hpack.Dhall
Hpack.Fields
Paths_hpack_dhall
hs-source-dirs:
library
test-suite-golden/src
ghc-options: -Wall -Wincomplete-uni-patterns -Wcompat -Widentities -Wredundant-constraints -fhide-source-paths
build-depends:
Cabal
, Diff
, aeson
, aeson-pretty
, base >=4.13 && <5
, bytestring
, dhall >=1.41.1
, dhall-json >=1.7.10
, directory
, filepath
, hpack ==0.36.*
, megaparsec >=9.2
, microlens
, prettyprinter
, tasty
, tasty-golden
, text
, transformers
, utf8-string
, yaml
default-language: Haskell2010