Skip to content

Commit ef620f8

Browse files
committed
wasm wip
1 parent 0437ad5 commit ef620f8

File tree

19 files changed

+1173
-877
lines changed

19 files changed

+1173
-877
lines changed

cabal.project

Lines changed: 104 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,101 +1,95 @@
1-
index-state: 2024-09-20T16:09:29Z
2-
allow-newer: base,
3-
text,
4-
template-haskell,
5-
bytestring,
6-
containers,
7-
deepseq,
8-
time,
9-
lens,
10-
aeson,
11-
process,
12-
hashable,
13-
filepath,
14-
os-string,
15-
directory,
16-
secp256k1,
17-
geojson:*,
18-
stopwatch:*,
1+
index-state: 2024-09-20T00:00:00Z
192

203
package unix
214
flags: +os-string
225

236
package directory
247
flags: +os-string
258

26-
package postgresql-libpq
27-
flags: +use-pkg-config
28-
299
source-repository-package
3010
type: git
3111
location: https://github.com/dorchard/type-level-sets.git
3212
tag: d71becf49c092cd7697f39e4f4fb55b289af3d31
3313
--sha256: qr2x4XbY66pXK/8u5PcGrXWrupG6Rt3yXshgOqKCsBs=
3414

35-
if impl(ghcjs) || arch(javascript) || arch(wasm32)
15+
if impl(ghcjs) || arch(javascript)
16+
source-repository-package
17+
type: git
18+
location: https://github.com/hamishmack/foundation.git
19+
tag: b424e329db3a8e57af177e872e7a26cebf72d6b3
20+
--sha256: lTrb3qh1ktwrV8PEBjYa7POETvzSbEq2HFXDKqsGRmY=
21+
subdir: basement
22+
source-repository-package
23+
type: git
24+
location: https://github.com/hamishmack/hs-memory.git
25+
tag: 8a4784839354826c5dcd27656f7fd83e4814048d
26+
--sha256: 2oOkNRGcDawzxDkX++8B4AOdXYclkhKlKH9StFmPs7Y=
27+
28+
if impl(ghcjs) || arch(javascript) || os(wasi)
3629
package zip
37-
flags: +disable-bzip2 +disable-zstd
30+
flags: +disable-bzip2
3831
package hexpat
3932
flags: +bundle
4033
package digest
4134
flags: -pkg-config
4235
package zlib
4336
flags: -pkg-config +bundled-c-zlib
37+
package zstd
38+
flags: +standalone
39+
else
40+
allow-older: reanimate:*,
41+
allow-newer: reanimate:*,
42+
reanimate-svg:*,
43+
tdlib:*
44+
packages:
45+
pub/hs-bitcoin-hash/bitcoin-hash/*.cabal
46+
pub/hs-bitcoin-keys/bitcoin-keys/*.cabal
47+
pub/haskell-bitcoin-script/*.cabal
48+
pub/singlethongs/*.cabal
49+
pub/functora/src/*.cabal
50+
pub/vector-space/*.cabal
51+
pub/witch-mini/*.cabal
52+
pub/selective/*.cabal
53+
pub/universum/*.cabal
54+
ghcjs/*/*.cabal
55+
optional-packages:
56+
prv/*/*.cabal
4457
source-repository-package
4558
type: git
46-
location: https://github.com/hamishmack/hs-memory.git
47-
tag: 8a4784839354826c5dcd27656f7fd83e4814048d
48-
--sha256: 2oOkNRGcDawzxDkX++8B4AOdXYclkhKlKH9StFmPs7Y=
49-
50-
if impl(ghc >= 9)
59+
location: https://github.com/reanimate/reanimate.git
60+
tag: 82638c078c2f62838d8b6cf77a6a138cf37d2f77
61+
--sha256: OkzQZ/Z1h+X6pXuj8lDqqn/6IkEoXZrG6ZMewzXeWEg=
5162
source-repository-package
5263
type: git
53-
location: https://github.com/hamishmack/foundation.git
54-
tag: b424e329db3a8e57af177e872e7a26cebf72d6b3
55-
--sha256: lTrb3qh1ktwrV8PEBjYa7POETvzSbEq2HFXDKqsGRmY=
56-
subdir: basement
57-
58-
if !arch(javascript)
59-
if impl(ghc >= 9)
60-
allow-older: reanimate:*
61-
allow-newer: table-layout:base,
62-
xlsx:microlens,
63-
reanimate-svg:*,
64-
reanimate:*,
65-
tdlib:*
66-
packages:
67-
pub/*/*.cabal
68-
pub/*/*/*.cabal
69-
ghcjs/*/*.cabal
70-
optional-packages:
71-
prv/*/*.cabal
72-
source-repository-package
73-
type: git
74-
location: https://github.com/reanimate/reanimate.git
75-
tag: 82638c078c2f62838d8b6cf77a6a138cf37d2f77
76-
--sha256: OkzQZ/Z1h+X6pXuj8lDqqn/6IkEoXZrG6ZMewzXeWEg=
77-
source-repository-package
78-
type: git
79-
location: https://github.com/santiweight/reanimate-svg.git
80-
tag: d63925781efa9834ba35036da83167f55af3c134
81-
--sha256: Xd6P82FepedcjjWRGjVNmdbDKRIH3Zl0haLiF3v1GDw=
82-
source-repository-package
83-
type: git
84-
location: https://github.com/lagunoff/hs-gauge.git
85-
tag: 2b803d12c8bae8d5971748d74234dd5cbb5025a1
86-
--sha256: n4BBVxcsYNYQRTacSfYn7BNFvom8Haf7DXiHT45RAf0=
87-
source-repository-package
88-
type: git
89-
location: https://github.com/hedgehogqa/haskell-hedgehog.git
90-
tag: 328a07f509ce1ae4c2996bfd67dbd1a545bb3b88
91-
--sha256: gaH13GXPYSu3sxBkN0Fp05m4dOuKok6KleJHIuUIyx8=
92-
subdir: hedgehog
93-
else
94-
packages:
95-
pub/functora/src/*.cabal
96-
ghcjs/*/*.cabal
64+
location: https://github.com/santiweight/reanimate-svg.git
65+
tag: d63925781efa9834ba35036da83167f55af3c134
66+
--sha256: Xd6P82FepedcjjWRGjVNmdbDKRIH3Zl0haLiF3v1GDw=
67+
source-repository-package
68+
type: git
69+
location: https://github.com/lagunoff/hs-gauge.git
70+
tag: 2b803d12c8bae8d5971748d74234dd5cbb5025a1
71+
--sha256: n4BBVxcsYNYQRTacSfYn7BNFvom8Haf7DXiHT45RAf0=
72+
source-repository-package
73+
type: git
74+
location: https://github.com/hedgehogqa/haskell-hedgehog.git
75+
tag: 328a07f509ce1ae4c2996bfd67dbd1a545bb3b88
76+
--sha256: gaH13GXPYSu3sxBkN0Fp05m4dOuKok6KleJHIuUIyx8=
77+
subdir: hedgehog
9778

98-
if arch(wasm32)
79+
if os(wasi)
80+
packages:
81+
pub/hs-bitcoin-hash/bitcoin-hash/*.cabal
82+
pub/hs-bitcoin-keys/bitcoin-keys/*.cabal
83+
pub/haskell-bitcoin-script/*.cabal
84+
pub/singlethongs/*.cabal
85+
pub/functora/src/*.cabal
86+
pub/vector-space/*.cabal
87+
pub/witch-mini/*.cabal
88+
pub/selective/*.cabal
89+
pub/universum/*.cabal
90+
ghcjs/miso-widgets/*.cabal
91+
ghcjs/miso-components/*.cabal
92+
ghcjs/delivery-calculator/*.cabal
9993
source-repository-package
10094
type: git
10195
location: https://github.com/amesgen/splitmix
@@ -116,13 +110,47 @@ if arch(wasm32)
116110
location: https://github.com/haskell-servant/servant-jsaddle.git
117111
tag: 6ce40e9f28bc7c648a8ca139603002a600306fbf
118112
--sha256: nz7UuNpux513axNFoeQ8KykBOhyny4FsqZUvw8mRk1k=
113+
source-repository-package
114+
type: git
115+
location: https://github.com/m-ildefons/foundation.git
116+
tag: 4316929e6cbca027e25349710a71548f8f26220a
117+
--sha256: anBAAO44Nny7oHiHwNUD6bPNnxJMTUPCmje7LjbCieo=
118+
subdir: basement
119+
source-repository-package
120+
type: git
121+
location: https://github.com/m-ildefons/hs-memory.git
122+
tag: 22f20394bb7efacde1dcc68c300133b4002854b9
123+
--sha256: 8KzYeBf/PeWO05SEp1jk+9pKeaZY5gBxq1VpqmbmI9k=
124+
source-repository-package
125+
type: git
126+
location: https://github.com/amesgen/entropy.git
127+
tag: f771c8010f001b87c5ccf9b61703b6912f7062d5
128+
--sha256: /Q+40JfnV6EmQoMGyNIhbjyxEAjJNsVZh4xQNRxB+io=
129+
source-repository-package
130+
type: git
131+
location: https://github.com/igrep/xml.git
132+
tag: a241f92c3cc0480e1eb60d10addbdf7c8d4437ae
133+
--sha256: PMCImvGlyZQ6IXPb4BLco9KULqnXBobo2BMKeAMVezo=
134+
subdir: xml-conduit
135+
source-repository-package
136+
type: git
137+
location: https://github.com/igrep/streaming-commons.git
138+
tag: 2c66e624e5e406409cf5d3d962d0a07f3537dcab
139+
--sha256: ZL2hLpDKFUTJU7rwSUbM3cFDzVA+T446dJFfZ0UU77M=
140+
source-repository-package
141+
type: git
142+
location: https://github.com/igrep/conduit.git
143+
tag: 6fc823fe35acfff3d324c7ff6596ae4890d1d200
144+
--sha256: AVn8HtqihFcG8j30xbNyu8mwoM+oLpywwx5kckA3ha0=
145+
subdir: conduit-extra
146+
package miso
147+
flags: +jsstring-only
119148
package aeson
120149
flags: -ordered-keymap
121150
package cryptohash-sha256
122151
flags: -use-cbits
123-
if impl(ghc >= 9.10)
124-
allow-newer: *
125-
allow-older: *
152+
allow-newer: base,
153+
template-haskell,
126154

127155
if arch(javascript)
128156
packages:

ghcjs/delivery-calculator/delivery-calculator.cabal

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,7 @@ common pkg
1414
autogen-modules: Paths_delivery_calculator
1515
default-language: Haskell2010
1616
hs-source-dirs: src
17-
18-
if impl(ghcjs)
19-
js-sources: static/app.js
20-
21-
else
22-
-- static/hashable.js
23-
-- static/material-components-web.min.js
24-
js-sources: static/app.js
25-
17+
js-sources: static/app.js
2618
other-modules:
2719
App.Misc
2820
App.Types

0 commit comments

Comments
 (0)