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

Implement a derivation for AvocADO typeclass #22

Open
4 tasks
KacperFKorban opened this issue Sep 22, 2022 · 1 comment
Open
4 tasks

Implement a derivation for AvocADO typeclass #22

KacperFKorban opened this issue Sep 22, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@KacperFKorban
Copy link
Member

For trivial types AvocADO should be derivable.
Types that should be derivable:

  • Option
  • Seq
  • List
  • [L] : Either[L, _]
@KacperFKorban KacperFKorban added the enhancement New feature or request label Sep 22, 2022
@KacperFKorban
Copy link
Member Author

One problem here is that for Seq and List there are two possible instances for AvocADO, because there are two possible implementations of Applicative. Specifically for those cases fa.zip(fb) is different than fa.flatMap(a => fb.map(a -> _)). We should figure out which one of those to use by default in the derivation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant