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

refactor: Remove generic instances for Maybe and Either #37

Merged
merged 2 commits into from
Dec 16, 2021

Conversation

bjornbugge
Copy link
Contributor

@bjornbugge bjornbugge commented Oct 5, 2020

If I need a particular encoding of Maybe and Either for compatibility reasons it's quite a hurdle that there's already a derived encoding bundled with this library. This PR removes the TH-derived decoders for Maybe and Either and leaves it to users to derive them themselves if they need them.


This change is Reviewable

@CLAassistant
Copy link

CLAassistant commented Oct 5, 2020

CLA assistant check
All committers have signed the CLA.

@bjornbugge bjornbugge changed the title Remove generic instances for Maybe and Either refactor: Remove generic instances for Maybe and Either Oct 12, 2020
@auto-add-label auto-add-label bot added the refactor Refactoring production code, eg. renaming a variable, not affecting semantics label Oct 12, 2020
@kirelagin
Copy link

Just got bitten by this too. The default encoding for Maybe is pretty weird and hardly useful (when interoping with other languages).

Bump library version number to `0.1.0` and use new Stackage LTS snapshot.
This reverts commit 8d993fc.

It breaks a test in hs-msgpack-binary.
@iphydf iphydf added this to the 0.1.0 milestone Dec 16, 2021
@iphydf iphydf merged commit 9148e4f into TokTok:master Dec 16, 2021
iphydf added a commit to iphydf/hs-msgpack-binary that referenced this pull request Dec 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Refactoring production code, eg. renaming a variable, not affecting semantics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants