Asynchronous JavaScript & PureScript for Haskellers
summary
Shows how DOM and network events are modeled with an emitter and explains the event loop queuing behavior, then compares callbacks, non‑cancelable Promises/async‑await and the futures library that adds cancelation and lawful monads. Demonstrates PureScript wrappers for fetch and the Aff monad (cancelable, type‑safe, used by afjax) and control over concurrency with fibers (fork/join/kill). Presents a working Cardano browser‑tx websocket client built atop these primitives.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 1:09JavaScript fundamentals
- 5:33The event loop
- 6:53Modern abstractions
- 11:08PureScript approach
- 16:17Working with fibers
- 17:31Summary of concepts
- 18:38Production use case
- 20:27Q&A and conclusion








