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 CStorable default implementation #1

Merged
merged 1 commit into from
Jan 17, 2015
Merged

Fix CStorable default implementation #1

merged 1 commit into from
Jan 17, 2015

Conversation

hsyl20
Copy link
Contributor

@hsyl20 hsyl20 commented Jan 17, 2015

Hi, this is a small patch to fix a copy-paste error in the default implementation of the CStorable instance.

maurer added a commit that referenced this pull request Jan 17, 2015
Fix CStorable default implementation
@maurer maurer merged commit acd894c into maurer:master Jan 17, 2015
@hsyl20
Copy link
Contributor Author

hsyl20 commented Jan 17, 2015

Thank you for merging my patch. Could you upload a new version (0.1.1?) on Hackage for this package? Mine cannot work without this fix.
Btw, thank you for providing this package. :)

@maurer
Copy link
Owner

maurer commented Jan 28, 2015

Sorry for the delay, your fix should be on hackage now: http://hackage.haskell.org/package/c-storable-deriving

@hsyl20
Copy link
Contributor Author

hsyl20 commented Jan 28, 2015

No problem ;) Thank you!

hsyl20 added a commit to hsyl20/c-storable-deriving that referenced this pull request Oct 29, 2015
With Generics, fields are arbitrarily nested with the binary operator
(:*:). Hence we cannot assume a left fold as we did until now to compute
field offsets. With this patch, we parameterize most operations of
GCStorable with an initial offset. The initial offset is only set to 0
for the whole data structure: i.e. in CStorable default methods.
maurer added a commit that referenced this pull request Oct 29, 2015
Fix #1: generic field ordering
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.

None yet

2 participants