Skip to content
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

deriveJSON and custom parsers #235

Closed
rbtcollins opened this issue Feb 14, 2015 · 3 comments
Closed

deriveJSON and custom parsers #235

rbtcollins opened this issue Feb 14, 2015 · 3 comments

Comments

@rbtcollins
Copy link

I wanted to use deriveJSON but ran into issue #197. I can't seem to see any way to teach deriveJSON how to use the custom parser presented in that issue. Clearly I can manually create it, which I will, but it seems like a useful feature would be a way to tell deriveJSON about some overrides.

@rbtcollins
Copy link
Author

So, digging it looks like this is totally doable using newtype, but a little bit of docs would go a long way here. Beyond that I found that using Data.Time.ZonedTime Just Worked (tm) :)

@bos
Copy link
Collaborator

bos commented Jul 21, 2015

Not really clear what you were trying to do here, so it's hard to tell what documentation could be improved.

@bos bos closed this as completed Jul 21, 2015
@rbtcollins
Copy link
Author

I forget :/. I can dig up my code before I try the fix for 197. https://github.com/rbtcollins/scratchpad/blob/master/BugTask.hs was the thing I ended up using.

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

No branches or pull requests

2 participants