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.
Unresolved decision about Error type in Effect PureScript’s compiler emits the documented error Cannot find module when a module import cannot be resolved. This error is the primary failure signal for missing modules and is tightly coupled to the module resolver’s behavior. In contrast, the standard library’s Effect monad offers throwError via Control.Monad.
When designing a new PureScript library, I need to decide whether to expose both Effect and Aff interfaces or to bet on a future unified effect monad. The Effect type tracks synchronous side effects through a phantom effect row, while Aff layers asynchronous, cancellable computations on top of that foundation. Today the language keeps these monads distinct,