Skip to content

Missing Apply law #102

Description

@eschnett

The Composition Applicative laws is really an Apply law:

pure (.) <*> u <*> v <*> w ≡ u <*> (v <*> w)

You can rewrite the first term pure (.) <*> u as fmap (.) u, and then it does not depend on pure any more, making it a law for the Apply typeclass. This law is just Apply's associativity in disguise.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions