Skip to content

Modify operator precedence of |> and |< for more sensical expressions #988

Description

@michaelmcinerney

The operator precedence of |> (opt_map) is currently set at 54, lower than the operator precedence of |< (opt_pred), which is at 55, leading to the expression P |< f |> g not being well-formed. This expression, by type, should unambiguously be equivalent to P |< (f |> g). If we were to make the precedence of |> stronger (that is, make its number higher than the number for |<), then this expression would parse successfully. This change does not break Reader_Option_Monad, where these constants are defined, but might require an update to the proofs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions