Skip to content

Add Compactable  #54

@FintanH

Description

@FintanH

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Open SourceLabelling open source contributions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions