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

Fix time encoding bugs #299

Merged
merged 2 commits into from Oct 10, 2015
Merged

Fix time encoding bugs #299

merged 2 commits into from Oct 10, 2015

Conversation

benweitzman
Copy link
Contributor

Time datatype were being encoded without surround quotation marks, which did not yield valid JSON. This fixes the bug, and also fixes the tests, which were not catching this bug.

This fixes #298

Previously, the test was converting an object to json using `toJSON`
and then encoding *that* (which always had a type of Value), so
the test was not catching cases where there was a bug in the
encoding function but not the toJSON function. This change makes
it so that both methods are always tested independently.
@basvandijk basvandijk merged commit 0b98185 into haskell:master Oct 10, 2015
@basvandijk
Copy link
Member

Thanks for the fix!

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.

Serialized times are not quoted
2 participants