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

Add lcomposition fixity to support (>>) in the stdlib #2847

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

paulcadman
Copy link
Collaborator

The stdlib composition function has fixity composition which means it is right associative.

We will rename to << in the stdlib and add a new function:

>> {a b c} : (a -> b) -> (b -> c) -> a -> c

for consistency with << this should be left associative.

This is not a breaking change to package-base so we don't need to increment the version number.

The stdlib composition function ∘ has fixity `composition` which means
it is right associative.

We will rename ∘ to << in the stdlib and add a new function:

>> {a b c} : (a -> b) -> (b -> c) -> a -> c

for consistency with << this should be left associative.

This is not a breaking change to package-base so we don't need to
increment th version number.
@paulcadman paulcadman merged commit a5cd3c9 into main Jun 20, 2024
4 checks passed
@paulcadman paulcadman deleted the add-lcomposition branch June 20, 2024 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants