Integrating Purescript and Halogen into Javascript Apps - Part 2 of 6
summary
Walks through an actual JavaScript app being incrementally replaced with PureScript and Halogen, showing concrete code changes: new action types, reducers, dispatch wiring, and UI buttons that clear cart and buy all while keeping inventory counts in sync. Demonstrates practical Redux interop, compilation and dependency hurdles, and a running demo that mostly compiles and mostly works with some fragile setup steps and live debugging of reducer and action wiring.
AI-written summary · about
chapters (10)
- 0:00Redux and action types
- 6:11Clear cart action
- 14:12Modular Redux benefits
- 20:58Impure operations in Redux
- 23:04Project dependencies
- 26:51Buy all products button
- 33:56Reducers for buy all
- 41:15Buy all reducer logic
- 48:01Actions to product list
- 51:40Redux demo test
related talks
01h 04mJavaScript to Purescript A Migration Story
47mFunctional Programming on the Web
43mThe Pure Functional Web
01h 49mPurely Functional Web Apps using React and PureScript
40mPurify Your Redux App
49mPurescript (Maybe this time we get Javascript right)
28mPureScript & Pux -- a safer, more expressive way to React
32mFunctional Programming:Learning
