stil4m / elm-syntax

Elm syntax in Elm
MIT License
92 stars 26 forks source link

`True |> xor True >> not` gets misparsed #175

Closed miniBill closed 1 year ago

miniBill commented 1 year ago
True |> xor True >> not

gets misparsed as (True |> xor True) >> not instead of True |> (xor True >> not)

miniBill commented 1 year ago

Other example (definitely worse): Err <| "a" ++ b ++ "c" also gets misparsed image

miniBill commented 1 year ago

This is actually a problem of not importing elm/core operators' priorities

I'll keep the issue open, but it's mostly a documentation issue rather than a wrong behavior.