Skip to content

Conversation

kaol
Copy link

@kaol kaol commented Sep 24, 2025

I needed support for streaming data and switched to using Fetch API in the process. It's available on any platform servant-jsaddle would target, especially for WASM. Doing it all in a single module started to get cumbersome so I split it into three.

Also fixes #9

Requires ghcjs/jsaddle#161

Fixes #1

@kaol kaol marked this pull request as draft September 24, 2025 06:46
@kaol kaol changed the title Switch from Fetch API to XHR Switch from XHR to Fetch API Sep 24, 2025
@kaol
Copy link
Author

kaol commented Sep 26, 2025

Also requires ekmett/kan-extensions#83 for MonadThrow and MonadCatch.

Turns out that writing instances for those for Codensity was a dead end. Just regular kan-extensions is fine.

Per the discussion in kan-extensions' github pull request 83, trying
to implement MonadCatch for Codensity is fundamentally flawed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Decode is not unicode aware Implement RequestBodySource in servant-client-jsaddle
1 participant