
10/6/2020 · Cristhian Motoche
What this post added
This post details how to compile Haskell code to WebAssembly using Asterius and deploy it on Cloudflare Workers. It covers setting up the Asterius environment, writing a Haskell module with a foreign function interface (FFI) export, creating a JavaScript loader, compiling the code using `ahc-link`, and deploying the resulting JavaScript and WebAssembly files to Cloudflare Workers via the API. It also demonstrates building a Cabal project with Asterius and `ahc-dist` for more complex deployments.