Home / Companies / Cloudflare / Blog / Post Details
Content Deep Dive

Let's build a Cloudflare Worker with WebAssembly and Haskell

Blog post from Cloudflare

Post Details
Company
Date Published
Author
Cristhian Motoche
Word Count
1,697
Language
English
Hacker News Points
79
Summary

This guest post by Cristhian Motoche from Stack Builders explores how Haskell can be used to target WebAssembly, which is a portable binary instruction format that executes fast in a memory-safe sandboxed environment. The author demonstrates the use of Asterius, a well-documented tool for compiling Haskell to WebAssembly, and deploys it on Cloudflare Workers, a serverless platform that allows running code on the edge of Cloudflare infrastructure. The post also covers how to create a simple Cabal project using Asterius's ahc-cabal CLI and compile it to WebAssembly with ahc-dist.