Using purs bundle --optimize for PureScript dead‑code elimination
Learn how the PureScript bundle optimizer removes unused PureScript definitions, see a minimal example, and understand its limits and common pitfalls.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how the PureScript bundle optimizer removes unused PureScript definitions, see a minimal example, and understand its limits and common pitfalls.
Learn how PureScript’s Effect monad uses row‑polymorphic types to track side‑effects, why you need explicit effect quantification for higher‑order functions, and how to verify your effect handling in practice.
Learn how to use PureScript Newtypes and Row Polymorphism to eliminate primitive obsession and enforce strict data boundaries using the 'Parse, don't validate' pattern.
Stop relying on fragile string concatenation for URLs. Learn how to use purescript-routing-duplex to create a bidirectional, type-safe routing system that catches broken links at compile time.
Learn how PureScript's row polymorphism enables flexible, structural typing for records, allowing functions to operate on data structures without rigid type definitions.
A concise guide to deriving FromJSON and ToJSON instances in PureScript using the purescript‑psa library, complete with a worked example, compile‑time safety, and common pitfalls.
PureScript utilizes row polymorphism to enable functions to operate on records containing a minimum set of required fields. This flexibility allows for record extension and restriction, ensuring type safety when merging data structures without relying on nominal inheritance. While the type system effectively manages these row constraints during compilation,
Integration Boundary: PureScript Date/Time Libraries ↔ JavaScript Intl API – Interoperability Question PureScript exposes a Date type that is a thin wrapper around JavaScript’s native Date , offering only UTC or local time via interop. When parsing an ISO string that includes a time‑zone offset (e.g., 2023-08-01T12:00:00+02:00 ), the parse function normalise
Concurrency in the Aff Monad PureScript manages asynchronous operations through the Aff monad, which leverages the JavaScript event loop to handle non-blocking I/O. While primitives like parallel and race allow multiple computations to initiate concurrently, the underlying execution remains single-threaded. Resource Contention and Scheduling When deploying a