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.
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
Goal Determine whether the Eff monad or the Effect monad provides clearer, actionable type‑level information for diagnosing intermittent connection‑pool exhaustion in a service that experiences bursty load. Constraints and uncertainty The Eff monad (purescript‑eff) tracks individual effects via extensible rows, giving fine‑grained visibility of which allocat
Goal: paginate a large dataset fetched via purescript-affjax while minimizing temporary memory allocation during slicing operations. Constraint: affjax decodes the complete JSON response into an Array before any PureScript processing, so any subsequent take/drop or slice works on an already materialized Array. Uncertainty: whether using Data.Array.slice (whi