I’m browsing around what it would take to compile Haskell to WebAssembly so that it can run on Fastly’s edge compute platform. One issue is that one needs to have bindings to the low-level Fastly interface, i.e. it’s ABI. They provide rust bindings (in addition to a convenient higher level idiomatic library), and that would have to be replicated on Haskell.
Unfortunately it’s not really fully documented, at least I did not find something. But I did at least find a machine-readable specification of the interface:
This is in a format called “witx”. So I’m wondering if someone has already build a tool that takes such a description and turns it into a Haskell module? (I assume the answer is no, but still posting that others interested can find this post)