Your First Haskell Web App With WAI And Warp
summary
Builds a minimal Haskell web server using WAI and Warp, showing a Hello World with responseBuilder and a real JSON service backed by an STM TVar map. Explains why simpleApp fails for streaming, introduces the CPS-style send/ResponseReceived to safely stream files and avoid lazy‑IO file‑handle bugs, demonstrates sendFile optimization, routing on pathInfo, middlewares (logging, gzip), parsing bodies with wai‑extra’s parseRequestBody (lbs backend warning about memory), and deployment via Warp behind nginx/kubernetes with a Docker image.
AI-written summary · about
chapters (15)
- 0:00Introduction to Y
- 2:39Hello world example
- 3:23Design philosophy of Y
- 5:23Common Y packages
- 6:28Y core data types
- 8:13Handling requests and headers
- 10:03Generating responses
- 12:38Streaming and continuation
- 18:09Routing and middleware
- 21:20Virtual hosting
- 23:01Static file serving
- 24:23Deployment strategies
- 29:03Exception handling
- 30:41JSON service case study
- 42:46Q&A and summary
related talks
01h 01mWeb Programming and Streaming Data in Haskell - Part 2 of 2
59mWeb Programming and Streaming Data in Haskell - Part 1 of 2
46mPainless software development with Haskell
20mWeb Application Architecture in Haskell
01h 22mCompiling Haskell to WebAssembly
01h 15mHaskell Adventures in IO
49mHaskell On Rails
59mBuilding a Blogging System with Haskell and Yesod - Part 1 of 6
