Closed sevanspowell closed 6 months ago
Related to https://github.com/ghcjs/ghcjs-base/pull/136
I'm particularly dubious about replacing the $c argument with a named variable c.
The name of the variable doesn't matter. But yes interruptible FFI functions take an additional continuation argument. See https://github.com/ghcjs/ghcjs-dom/blob/4f14a236a462523e094c749ead80aef3c8678617/ghcjs-dom-jsffi/jsbits/xhr.js#L1
Thanks @hsyl20, this is the kind of feedback I need. I'll test that the suggestion works locally and post back here.
I tested it locally with an xhr request and there was no issues :+1:
I believe that some
foreign import
s haven't been updated to use the new GHC JS backend syntax.I needed to make this change to get
servant-jsaddle
to work.Have I done the correct thing here? I'm particularly dubious about replacing the
$c
argument with a named variablec
.If this is correct, I can make these changes throughout the codebase.