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

Comments

Projects
None yet
3 participants
@jutaro
Copy link

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

This comment has been minimized.

Copy link
Owner

commented Jan 21, 2012

Thanks, @basvandijk!

@jutaro

This comment has been minimized.

Copy link
Author

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

Fixed bos#62.
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
You can’t perform that action at this time.