I implemented a minimal working example of a Typst plugin written in Haskell, compiled using GHC's WebAssembly backend:
https://github.com/astrale-sharp/wasm-minimal-protocol/pull/49
#Minimal example of Haskell-based Typst plugin
9 messages · Page 1 of 1 (latest)
I'm able to reproduce it on Ubuntu 24.04!
If I understand correctly, the idea of wasi-stub also applies to haskell, except that the stub return value can't be an arbitrary 76 (as shown below), but has to be a specific value like 8 (EBADF, no such file/descriptor) for fd_prestat_get.
If so, then it's theoretically possible to integrate hello_haskell/replace_wasi.py into wasi-stub?
https://github.com/astrale-sharp/wasm-minimal-protocol/pull/49#discussion_r2791770692
Previous discussions: #1400096421306175509
It is indeed possible to just invoke wasi-stub. One can simply call wasi-stub with --return-value 0 to swap out the arbitrary value 76.
@burnt yarrow Sorry to disturb, but I'm not sure if you are still active on GitHub, so I figured to ping you here on Discord so that you can review this pull request.
Hiya, I'm extremely busy unfortunately and will not be able to
If you feel you won't be able to maintain the repo anymore, moving it to the Typst Community org may be an option; it looks like there are quite a few contributors that could co-maintain.
- a transfer of the repo would mean more continuity, but also more work: transferring crates.io ownership would also be necessary
- a fork would mean basically no work on your part; I just think no one would want to do that without asking you first.
If you'd be okay with the latter, we could try to get this going. If you think you'd take the time for the former, that would be great too of course.
I'm okay with the former but to whom do i transfer ownership?
You can give it to a community?
I'll start a thread continue in #1194684809906237500 message