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

Remove unnecessary return definitions #1095

Merged
merged 1 commit into from
Jan 19, 2025
Merged

Conversation

meooow25
Copy link
Contributor

@meooow25 meooow25 commented Jan 18, 2025

The default return=pure works and we are long past the Functor-Applicative-Monad Proposal.

The default return=pure works and we are long past the
Functor-Applicative-Monad Proposal.
@meooow25 meooow25 changed the title Remove unnecessary return and >> definitions Remove unnecessary return definitions Jan 18, 2025
@meooow25
Copy link
Contributor Author

I was about to remove Seq's (>>) = (*>) but realized that the default is unfortunately not that but m >> k = m >>= \_ -> k. *sigh*

@treeowl
Copy link
Contributor

treeowl commented Jan 18, 2025

I was about to remove Seq's (>>) = (*>) but realized that the default is unfortunately not that but m >> k = m >>= \_ -> k. sigh

It's not at all unusual to have to write (*>) = (>>) either. Thinking is unfortunately required for these.

@meooow25 meooow25 merged commit 25036a9 into haskell:master Jan 19, 2025
13 checks passed
@meooow25 meooow25 deleted the no-return branch January 19, 2025 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants