servant-js
servant-js copied to clipboard
Automatically derive javascript functions to query servant webservices.
The tests do pass, though I had to run against https://github.com/jswebtools/language-ecmascript/pull/90 and use `--allow-newer=text`.
I have an endpoint that looks approximately like this: ```hs SAS.Auth [SAS.Cookie] LoggedIn :> Capture "tournamentId" TournamentId :> "start" :> Post '[JSON] (Entity Tournament) ``` Unfortunately, attempt to generate JS...
The current Cabal file has a `
I'm writing a server which isn't necessarily accessed from a browser front end or on the same domain as the server itself. Because of this, it would be necessary to...
When `servant-server` returns an error with a body (e.g. on failure to parse, or missing required arguments), it's not json-encoded (it's plain-text) "by default" (e.g. when using `ReqBody`). However the...
Attempt to unblock: https://github.com/haskell-servant/servant/pull/1297
Hi there, very thanks to make js interface from type based safety api! I used 'type to axios style api', and thought that it is more useful for development(flexibility) to...
In my case I had a simple connection issue, but because it attempted to parse that result I coudln't see the error. ```javascript else { try { res = JSON.parse(xhr.responseText);...
I like how the project is supporting multiple frameworks and plain javascript with xhr. The ˋfetchˋ api is missing. It returns promises and could in general be favored over the...
Failed to build previously with: ``` examples/counter.hs:72:19: warning: [-Wdeprecations] In the use of ‘serveDirectory’ (imported from Servant, but defined in Servant.Server.StaticFiles): Deprecated: "Use serveDirectoryFileServer instead" | 72 | : serveDirectory...