mirror of
https://github.com/tweag/asterius.git
synced 2024-09-21 05:48:04 +03:00
1.9 KiB
1.9 KiB
Asterius is a Haskell to WebAssembly compiler based on GHC. It compiles simple
Haskell source files or Cabal executable targets to WebAssembly+JavaScript code
which can be run in node.js or browsers. It features seamless JavaScript interop
(lightweight Async FFI with Promise
support) and small output code (~600KB
hello.wasm
for a Hello
World). A lot of common
Haskell packages like lens
are already supported. The project is actively
maintained by Tweag I/O.
Contents
- Overview
- Building guide
- Cabal support
- Using ahc-dist/ahc-link
- JavaScript FFI
- Template Haskell
- Invoking RTS API in JavaScript
- IR types and transformation passes
- The runtime debugging feature
- Project architecture
- Writing WebAssembly code in Haskell
- WebAssembly as a Haskell compilation target
- Using experimental WebAssembly features
- Hacking guide
- Reading list
Sponsors
Asterius is maintained by Tweag I/O.
Have questions? Need help? Tweet at @tweagio.