Skip to content

Implement ap in terms of Bind #229

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 2 commits into from
Oct 3, 2020
Merged

Implement ap in terms of Bind #229

merged 2 commits into from
Oct 3, 2020

Conversation

hdgarrood
Copy link
Contributor

  • Moves ap to Control.Bind and implements it in terms of just Bind
    rather than Monad
  • Moves the Applicative Superclass law from Monad to Bind and renames it
    to the Apply Superclass law

Note that this should be non-breaking since ap is now re-exported from
Control.Monad.

Fixes #158

* Moves `ap` to Control.Bind and implements it in terms of just Bind
  rather than Monad
* Moves the Applicative Superclass law from Monad to Bind and renames it
  to the Apply Superclass law

Note that this should be non-breaking since `ap` is now re-exported from
Control.Monad.
Co-authored-by: Thomas Honeyman <thoneyman@awakesecurity.com>
@thomashoneyman thomashoneyman merged commit 070b6eb into master Oct 3, 2020
@thomashoneyman thomashoneyman deleted the bind-ap branch October 3, 2020 20:38
JordanMartinez added a commit that referenced this pull request Jan 13, 2021
* Write changelog for upcoming release

* Add v4.1.1 release to changelog

* Document changes that happened in v4.1.1 release

* Add #229 to breaking changes

* Remove backticks around 'do notation'

* Rephrase 'make library compile on v0.14.0'

* Separate documentation improvement PRs from other improvements

* Include other PR related to v0.14.0 in changelog

* Add toRep PR

* Put Array do notation and Monoid newtype PR summary on one line

* Include PR that fixes typo

* Change section header back to Unreleased
turlando pushed a commit to purescm/purescript-prelude that referenced this pull request Sep 3, 2021
* Write changelog for upcoming release

* Add v4.1.1 release to changelog

* Document changes that happened in v4.1.1 release

* Add purescript#229 to breaking changes

* Remove backticks around 'do notation'

* Rephrase 'make library compile on v0.14.0'

* Separate documentation improvement PRs from other improvements

* Include other PR related to v0.14.0 in changelog

* Add toRep PR

* Put Array do notation and Monoid newtype PR summary on one line

* Include PR that fixes typo

* Change section header back to Unreleased
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Interplay between Apply and Bind
3 participants