-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpackage.dhall
102 lines (97 loc) · 3.29 KB
/
package.dhall
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
let deps =
[ "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"
]
in let exe-deps = [ "optparse-applicative" ]
in { name = "hpack-dhall"
, version = "0.5.8"
, maintainer = "Phil de Joux <[email protected]>"
, copyright =
"© 2018 - 2024 Phil de Joux, © 2018 - 2024 Block Scope Limited"
, license = "BSD3"
, license-file = "LICENSE"
, category = "Development"
, 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.
''
, github = "cabalism/hpack-dhall"
, 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/**/*.dhall"
, "test-suite-golden/**/*.dhl"
, "test-suite-golden/**/*.cabal"
, "test-suite-golden/**/*.json"
, "test-suite-golden/**/*.yaml"
, "test-suite-golden/**/*.golden"
]
, ghc-options =
[ "-Wall"
, "-Wincomplete-uni-patterns"
, "-Wcompat"
, "-Widentities"
, "-Wredundant-constraints"
, "-fhide-source-paths"
]
, dependencies = deps
, source-dirs = "library"
, library.exposed-modules = [ "Hpack.Dhall", "Hpack.Fields" ]
, executables =
{ dhall-hpack-cabal =
{ main = "CabalMain.hs"
, source-dirs = [ "exe/options", "exe/dhall-hpack-cabal" ]
, dependencies = exe-deps
}
, dhall-hpack-json =
{ main = "JsonMain.hs"
, source-dirs = [ "exe/options", "exe/dhall-hpack-json" ]
, dependencies = exe-deps
}
, dhall-hpack-yaml =
{ main = "YamlMain.hs"
, source-dirs = [ "exe/options", "exe/dhall-hpack-yaml" ]
, dependencies = exe-deps
}
, dhall-hpack-dhall =
{ main = "DhallMain.hs"
, source-dirs = [ "exe/options", "exe/dhall-hpack-dhall" ]
, dependencies = exe-deps
}
}
, tests.golden
=
{ main = "Golden.hs"
, source-dirs = [ "test-suite-golden/src" ]
, dependencies =
[ "Cabal"
, "Diff"
, "directory"
, "tasty"
, "tasty-golden"
, "utf8-string"
]
}
}