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

Add Compactable #54

Open
FintanH opened this issue Feb 1, 2019 · 0 comments
Open

Add Compactable #54

FintanH opened this issue Feb 1, 2019 · 0 comments
Labels
Open Source Labelling open source contributions

Comments

@FintanH
Copy link
Contributor

FintanH commented Feb 1, 2019

Add the Compactable construct to dhall-bhat.

Class Functions:

  • compact : (f : Functor) -> f (Maybe a) -> f a
  • separate : (f : Functor) -> f (Either l r) -> (f l, f r)

Instances may be automatically derivable from the above two functions.

Combinator Functions:

  • mapMaybe
  • mapEither
  • filter
  • partition
  • apMaybe
  • apEither
  • bindMaybe
  • bindEither
  • traverseMaybe
  • traverseEither

EDIT: Not sure if filter or partition are useful

@FintanH FintanH added the Open Source Labelling open source contributions label Feb 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Open Source Labelling open source contributions
Projects
None yet
Development

No branches or pull requests

1 participant