You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Control.Applicative, <|> is defined as having fixity infixl 3, but in Parsec it is defined as infixr 1. Is there a reason for this difference? Should Parsec be changed to match?
The text was updated successfully, but these errors were encountered:
I believe it's this way because Parsec had (<|>) before Control.Applicative became common, so it has chosen its own standards. IMO, not only precedence should be changed to match, but it should also be made an instance of Alternative and (<|>) should be just re-exported from Control.Applicative. That's what we've done in Megaparsec.
In
Control.Applicative
,<|>
is defined as having fixityinfixl 3
, but in Parsec it is defined asinfixr 1
. Is there a reason for this difference? Should Parsec be changed to match?The text was updated successfully, but these errors were encountered: