Managing Asynchronous Side Effects in PureScript with Aff
Learn how to safely manage asynchronous side effects in PureScript using the Aff monad, with concrete examples, verification steps, and recovery strategies.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how to safely manage asynchronous side effects in PureScript using the Aff monad, with concrete examples, verification steps, and recovery strategies.
Bind JavaScript functions in PureScript with foreign import and Effect, then verify the generated output because FFI types are erased at runtime.
Use PureScript open row polymorphism to require specific record fields while preserving unknown fields through transformations, checked at compile time.
PureScript row polymorphism allows for type-safe configuration merging. Learn how to use row constraints and Record.merge to ensure required keys exist at compile time.
An architecture note describing how to use PureScript’s FFI to call JavaScript safely, covering requirements, minimal design, trust boundaries, checks, failure modes, and when to redesign.
Decide when to use raw PureScript FFI versus purescript-foreign boundary decoding for safer JavaScript interop.
PureScript's FFI lets you call JavaScript, but the compiler cannot see runtime shapes. Here is how to choose between direct bindings and purescript-foreign decoding.
Row polymorphism lets PureScript functions accept records with extra fields while keeping static type safety. Learn the syntax, a worked example, and the limits.
Decide which PureScript FFI style to use when calling JavaScript, with a comparison table, trade-offs, and a validated spago workflow.