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

GenericSYB don't parse constructor with no args #62

Closed
jutaro opened this issue Jan 12, 2012 · 2 comments
Closed

GenericSYB don't parse constructor with no args #62

jutaro opened this issue Jan 12, 2012 · 2 comments
Assignees

Comments

@jutaro
Copy link

jutaro commented Jan 12, 2012

When I have
data CommandForBench = BenchCommandConnectGUI
decode (encode BenchCommandConnectGUI) gives Nothing.

When I change to
data CommandForBench = BenchCommandConnectGUI ()
everything works as expected.

Cheers
Jürgen

@ghost ghost assigned basvandijk Jan 13, 2012
@bos
Copy link
Collaborator

bos commented Jan 21, 2012

Thanks, @basvandijk!

@jutaro
Copy link
Author

jutaro commented Jan 21, 2012

I should add a detailed example . Hope I can do the next days.
Am 21.01.2012 23:33 schrieb "Bryan O'Sullivan" <
reply@reply.github.com

:

tolysz pushed a commit to tolysz/aeson that referenced this issue May 18, 2015
Nullary constructors are encoded as an empty array.
The syb code wrongfully assumed they were encoded as Null.
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

3 participants