This repository has been archived by the owner on Feb 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
etlas.dhall
211 lines (200 loc) · 8.55 KB
/
etlas.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
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
let prelude =
https://raw.githubusercontent.com/eta-lang/dhall-to-etlas/master/dhall/prelude.dhall sha256:22685aa004763d3d783a116b307a3b3d61cc49aa48e6ff07257668336c27b4a9
let types =
https://raw.githubusercontent.com/eta-lang/dhall-to-etlas/master/dhall/types.dhall sha256:4de5daf77713923a6510c4eff516a6f9caf9a52761fc0558d7a924eef0050e09
let v = prelude.v
let pkg =
λ(name : Text)
→ λ(version-range : types.VersionRange)
→ { bounds = version-range, package = name }
let pkgVer =
λ(packageName : Text)
→ λ(minor : Text)
→ λ(major : Text)
→ pkg
packageName
( prelude.intersectVersionRanges
(prelude.orLaterVersion (v minor))
(prelude.earlierVersion (v major))
)
let deps =
{ base = pkgVer "base" "4.5" "5"
, bytestring = pkgVer "bytestring" "0.10" "0.11"
, contravariant = pkgVer "contravariant" "1.5" "1.6"
, containers = pkgVer "containers" "0.5" "0.6"
, cryptonite = pkgVer "cryptonite" "0.23" "1.0"
, dhall = pkgVer "dhall" "1.19.1" "1.20"
, dhall-eta = pkg "dhall-eta" prelude.anyVersion
, directory = pkgVer "directory" "1.2.2.0" "1.4"
, dotgen = pkgVer "dotgen" "0.4.2" "0.5"
, eta-java-interop = pkgVer "eta-java-interop" "0.1.5.0" "0.1.6"
, filepath = pkgVer "filepath" "1.4" "1.5"
, megaparsec = pkgVer "megaparsec" "6.1.1" "7.1"
, memory = pkgVer "memory" "0.14" "0.15"
, lens = pkgVer "lens-family-core" "1.0.0" "1.3"
, prettyprinter = pkgVer "prettyprinter" "1.2.0.1" "1.3"
, scientific = pkgVer "scientific" "0.3.0.0" "0.4"
, serialise = pkgVer "serialise" "0.2.0.0" "0.3"
, tasty = pkgVer "tasty" "0.11.2" "1.2"
, tasty-hunit = pkgVer "tasty-hunit" "0.9.2" "0.11"
, text = pkgVer "text" "1.2" "1.3"
, transformers = pkgVer "transformers" "0.2.0.0" "0.6"
}
let warning-options =
[ "-Wall"
, "-fwarn-incomplete-uni-patterns"
, "-fwarn-incomplete-record-updates"
, "-fno-warn-orphans"
]
let extensions =
[ types.Extension.DataKinds True
, types.Extension.TypeOperators True
, types.Extension.TypeFamilies True
, types.Extension.FlexibleContexts True
, types.Extension.MultiParamTypeClasses True
, types.Extension.OverloadedStrings True
]
let version = "1.0.0"
let updateRepo =
prelude.utils.mapSourceRepos
( λ(srcRepo : types.SourceRepo)
→ srcRepo ⫽ { tag = Some version, kind = types.RepoKind.RepoThis }
)
let project =
prelude.utils.GitHub-project { owner = "eta-lang", repo = "dhall-eta" }
in updateRepo
( project
⫽ { synopsis =
"dhall-eta is a eta library that wraps the haskell implementation of dhall configuration language."
, description = ""
, category = "Language"
, build-type = Some types.BuildType.Simple
, maintainer = "[email protected]"
, author = "Javier Neira Sánchez <[email protected]>"
, extra-source-files =
[ "build.gradle"
, "dhall-eta.cabal"
, "dhall-eta.dhall"
, "examples/build.gradle"
, "examples/src/main/java/org/dhall/eta/example/*.java"
, "gradlew"
, "gradlew.bat"
, "gradle/wrapper/gradle-wrapper.jar"
, "gradle/wrapper/gradle-wrapper.properties"
, "java/build.gradle"
, "java/src/main/java/org/dhall/*.java"
, "java/src/main/java/org/dhall/binary/*.java"
, "java/src/main/java/org/dhall/binary/decoding/failure/*.java"
, "java/src/main/java/org/dhall/common/types/*.java"
, "java/src/main/java/org/dhall/common/types/either/*.java"
, "java/src/main/java/org/dhall/common/types/functor/*.java"
, "java/src/main/java/org/dhall/core/*.java"
, "java/src/main/java/org/dhall/core/constant/*.java"
, "java/src/main/java/org/dhall/core/expr/*.java"
, "java/src/main/java/org/dhall/core/imports/*.java"
, "java/src/main/java/org/dhall/core/imports/hashed/*.java"
, "java/src/main/java/org/dhall/core/imports/types/*.java"
, "java/src/main/java/org/dhall/core/imports/types/url/*.java"
, "proguard.txt"
, "README.md"
, "settings.gradle"
, "src/main/java/org/dhall/eta/*.java"
, "src/test/resources/import/data/foo/bar/*.dhall"
, "src/test/resources/import/success/*.dhall"
]
, license = types.License.BSD3
, license-files = [ "LICENSE" ]
, version = v version
, cabal-version = v "1.12"
, library =
prelude.unconditional.library
( prelude.defaults.Library
⫽ { build-depends =
[ deps.base
, deps.bytestring
, deps.containers
, deps.contravariant
, deps.cryptonite
, deps.dhall
, deps.dotgen
, deps.eta-java-interop
, deps.megaparsec
, deps.memory
, deps.lens
, deps.prettyprinter
, deps.scientific
, deps.serialise
, deps.text
, deps.transformers
]
, compiler-options =
prelude.defaults.CompilerOptions
⫽ { GHC = warning-options }
, exposed-modules =
[ "Dhall.Eta"
, "Dhall.Eta.Binary"
, "Dhall.Eta.Context"
, "Dhall.Eta.Core"
, "Dhall.Eta.Core.Java"
, "Dhall.Eta.Import"
, "Dhall.Eta.Parser"
, "Dhall.Eta.Parser.Java"
, "Dhall.Eta.TypeCheck"
, "Dhall.Eta.TypeCheck.Java"
, "Eta.Types"
]
, hs-source-dirs = [ "src/main/eta" ]
, java-sources = [ "@classes.java" ]
, default-extensions = extensions
, other-modules = [ "Dhall.Eta.Map" ]
}
)
, executables =
[ prelude.unconditional.executable
"dhall-eta-all"
( prelude.defaults.Executable
⫽ { build-depends = [ deps.base, deps.dhall-eta ]
, compiler-options =
prelude.defaults.CompilerOptions
⫽ { GHC = warning-options }
, hs-source-dirs = [ "examples/src/main/eta" ]
, main-is = "Main.hs"
, default-extensions = extensions
}
)
]
, test-suites =
[ prelude.unconditional.test-suite
"tasty"
( prelude.defaults.TestSuite
⫽ { type =
types.TestType.exitcode-stdio
{ main-is = "Dhall/Eta/Test/Main.hs" }
, build-depends =
[ deps.base
, deps.dhall
, deps.dhall-eta
, deps.directory
, deps.filepath
, deps.tasty
, deps.tasty-hunit
, deps.text
, deps.transformers
]
, compiler-options =
prelude.defaults.CompilerOptions
⫽ { GHC = warning-options }
, default-extensions = extensions
, hs-source-dirs = [ "src/test/eta" ]
, other-modules =
[ "Dhall.Eta.Test.Common"
, "Dhall.Eta.Test.Import"
, "Dhall.Eta.Test.Normalization"
, "Dhall.Eta.Test.Parser"
, "Dhall.Eta.Test.TypeCheck"
]
}
)
]
}
)