~/talk

Your First Haskell Web App With WAI And Warp

Talkat Functional Conf 2019 · 2019-11-13..11-17· [haskell]
slides:none on file

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

  1. 0:00Introduction to Y
  2. 2:39Hello world example
  3. 3:23Design philosophy of Y
  4. 5:23Common Y packages
  5. 6:28Y core data types
  6. 8:13Handling requests and headers
  7. 10:03Generating responses
  8. 12:38Streaming and continuation
  9. 18:09Routing and middleware
  10. 21:20Virtual hosting
  11. 23:01Static file serving
  12. 24:23Deployment strategies
  13. 29:03Exception handling
  14. 30:41JSON service case study
  15. 42:46Q&A and summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.