Skip to content

splitString/Choice are constrained to categories while they do not require identity #47

Description

@erykciepiela
splitStrong
  :: forall p a b c d
   . Category p -- actually only Semigroupoid required 
  => Strong p
  => p a b
  -> p c d
  -> p (Tuple a c) (Tuple b d)
splitStrong l r = first l >>> second r
splitChoice
  :: forall p a b c d
   . Category p -- actually only Semigroupoid required 
  => Choice p
  => p a b
  -> p c d
  -> p (Either a c) (Either b d)
splitChoice l r = left l >>> right r

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions