-
Notifications
You must be signed in to change notification settings - Fork 197
Expand file tree
/
Copy pathpackage.yaml
More file actions
196 lines (183 loc) · 4.21 KB
/
package.yaml
File metadata and controls
196 lines (183 loc) · 4.21 KB
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
# Normally, increase the version using the script `stack exec koka -- -e util/reversion -- -v<version>`
# (where the <version> is without a preceding 'v'). This will update the version in all required places.
#
# When increasing the version manually, increase the version below at the cpp-options as well,
# and also update other files that contain a version:
# - util/install.sh
# - util/install.bat
# - util/minbuild
# - support/vscode/koka.language-koka/whatsnew.md
# - readme.md
name: koka
version: 3.2.6
github: "koka-lang/koka"
license: Apache-2.0
author: Daan Leijen
maintainer: daan@microsoft.com
extra-source-files:
- readme.md
description: Please see the README on GitHub at <https://github.com/koka-lang/koka#readme>
dependencies:
- base >= 4.9
- array
- bytestring
- containers
- mtl
- parsec
- text
- time
- async
- FloatingHex >= 0.5
- hashable >= 1.4
- directory
- process
library:
other-extensions:
- CPP
- OverloadedStrings
source-dirs:
- src
build-tools:
- alex
ghc-options:
- -j8
- -O2
- -Wno-x-partial # todo: compile with this enabled..
cpp-options:
- -DKOKA_MAIN="koka"
- -DKOKA_VARIANT="release"
- -DKOKA_VERSION="3.2.6"
- -DREADLINE=0 # 1:getline, 2:readline, 3:haskeline, or 0:isocline
when:
- condition: os(windows)
cpp-options: -DWINDOWS
- condition: os(darwin)
cpp-options: -DDARWIN
# ── Platform: GHC WASM backend ──
- condition: arch(wasm32)
source-dirs: src/Platform/wasm
cpp-options: -DKOKA_WASM
exposed-modules:
- Platform.Config
- Platform.Console
- Platform.FileIO
- Platform.Filetime
- Platform.GetOptions
- Platform.ReadLine
- Platform.Runtime
- Platform.Var
# ── Platform: Native (default) ──
- condition: "!arch(wasm32)"
source-dirs: src/Platform/cpp
c-sources:
- src/Platform/cpp/Platform/cconsole.c
- src/Platform/cpp/Platform/cconsole.h
include-dirs:
- src/Platform/cpp/Platform
dependencies:
- isocline >= 1.0.6
exposed-modules:
- Platform.Config
- Platform.Console
- Platform.FileIO
- Platform.Filetime
- Platform.GetOptions
- Platform.ReadLine
- Platform.Runtime
- Platform.Var
executables:
koka:
main: Main.hs
source-dirs: src/Main/langserver
dependencies:
- aeson
- async
- co-log-core
- koka
- lens
- lsp
- network-simple
- network
- text-rope
- stm
ghc-options:
- -rtsopts
- -j8
- -O2
- -threaded
# - -fprof-auto
# - -finfo-table-map
# - -fdistinct-constructor-tables
# - '"-with-rtsopts=-N8 -l"'
- '"-with-rtsopts=-N8"'
when:
- condition: "arch(wasm32)"
buildable: false
koka-plain:
main: Main.hs
source-dirs: src/Main/plain
dependencies: koka
ghc-options:
- -rtsopts
- -j8
- -O2
- -threaded
# - -fprof-auto
# - -finfo-table-map
# - -fdistinct-constructor-tables
# - '"-with-rtsopts=-N8 -l"'
- '"-with-rtsopts=-N8"'
when:
- condition: "arch(wasm32)"
buildable: false
koka-playground:
main: Main.hs
source-dirs: src/Main/playground
dependencies:
- koka
ghc-options:
- -O2
when:
- condition: "!arch(wasm32)"
buildable: false
- condition: arch(wasm32)
cpp-options: -DKOKA_WASM
koka-lsp-wasm:
main: Main.hs
source-dirs:
- src/Main/langserver
dependencies:
- aeson
- async
- co-log-core
- koka
- lens
- lsp
- text-rope
- stm
cpp-options: -DKOKA_WASM
ghc-options:
- -O2
when:
- condition: "!arch(wasm32)"
buildable: false
tests:
koka-test:
main: Spec.hs
source-dirs: test
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
dependencies:
- koka
- extra
- filepath
- hspec
- hspec-core
- process
- regex-compat >= 0.95.2.1
- json
when:
- condition: "arch(wasm32)"
buildable: false