-
Notifications
You must be signed in to change notification settings - Fork 32
How to parse JSON Response back to Haskell Type ? #190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You would have to write your own parser or submit one as a PR here. |
@jml Any hint to do that ? Because the resulting response type seems arbitrary as a HashMap. My use case is to use with GHCJS. |
No, sorry.
…On Mon, 9 Jul 2018 at 06:46, Truong Hoang Dung ***@***.***> wrote:
@jml <https://github.com/jml> Any hint to do that ? Because the resulting
response type seems arbitrary as a HashMap.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#190 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAHq6qvMQWX9RV9nL5lZVlaOi9CbwHnFks5uEu4YgaJpZM4VGjvd>
.
|
@checkraiser I'm currently writing a converter of a JSON object into a GraphQL haskell type given an existing schema. While my use case is for variables provided as a JSON map, and thus I'm only writing it for InputType, perhaps you'll be able to extend it to fit your use case. |
@theobat Actually i think in this case, the nature of response result type consumed by client is too generic. To actually build up state on client side, we have to use something like |
Currently,
Object
doesn't have instance offromJSON
, so how can we convert back Response to Haskell Type from JSON Response ?The text was updated successfully, but these errors were encountered: