Calling JavaScript from PureScript with foreign import and Effect
Bind JavaScript functions in PureScript with foreign import and Effect, then verify the generated output because FFI types are erased at runtime.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Bind JavaScript functions in PureScript with foreign import and Effect, then verify the generated output because FFI types are erased at runtime.
I'm setting up a repeatable PureScript development environment with Spago (PureScript compiler 0.15.x, recent Spago) and keep hitting a module resolution failure I don't fully understand. After running spago install purescript-aff , importing Effect.Aff in a source file and running spago build fails with an error along the lines of Could not find module Effe
Goal: achieve deterministic builds for a PureScript project that calls JavaScript via FFI. Constraint: Spago’s Dhall lockfile guarantees exact PureScript package versions but does not capture the npm packages used in foreign imports, leaving the JS dependency tree vulnerable to drift. Uncertainty: teams can either rely solely on Spago's lockfile and manage J
Goal Upgrade a small PureScript codebase from spago 0.12 to 0.13 while keeping the application online and avoiding any downtime. Constraints The project uses a custom dependency set that may be sensitive to snapshot changes. spago 0.13 introduces the resolver field in spago.dhall , replacing the older packages field. Build reproducibility and type‑level comp