Skip to content

Add fixity declaration for every operator of linear-base#386

Merged
tbagrel1 merged 1 commit intomasterfrom
tbagrel1/operator-fixity
Feb 17, 2022
Merged

Add fixity declaration for every operator of linear-base#386
tbagrel1 merged 1 commit intomasterfrom
tbagrel1/operator-fixity

Conversation

@tbagrel1
Copy link
Copy Markdown
Member

Precedence levels are chosen to be same as in base.

The only exception is compare, for which I chose infix 4 like every other a -> b -> Bool operator (elem, <, <=, ==...).

Closes #374 .

@tbagrel1 tbagrel1 requested a review from aspiwack February 16, 2022 14:29
(>>#=) :: RIO a %1 -> (a %1 -> RIO b) %1 -> RIO b
(>>#=) = (Control.>>=)

infixl 1 >>#= -- same fixity as base.>>=
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was not necessarily essential to add fixities in the examples. But it can't hurt 🙂

Precedence levels are chosen to be same as in base.
@tbagrel1 tbagrel1 force-pushed the tbagrel1/operator-fixity branch from 6bf0a46 to 157073b Compare February 17, 2022 09:33
@tbagrel1 tbagrel1 merged commit 91389a2 into master Feb 17, 2022
@tbagrel1 tbagrel1 deleted the tbagrel1/operator-fixity branch February 17, 2022 09:42
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.

Add fixity declaration on every redefined operator

2 participants