PureScript FFI ↔ JavaScript Promises: Automatic Conversion?
Goal We want a seamless way to call a JavaScript function that returns a Promise from PureScript, automatically mapping it to PureScript’s Effect or Async monad. Current Constraints The foreign import syntax treats imported values as raw JavaScript, so a Promise returned by the imported function is passed through untouched. There is no automatic conversion;