Skip to content

Commit

Permalink
Fix operator fixity for ==, /= and ^
Browse files Browse the repository at this point in the history
  • Loading branch information
miniBill committed Mar 15, 2024
1 parent cd59153 commit 3fbd890
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Elm/Op.elm
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ type BinOp
equal : Expression -> Expression -> Expression
equal =
applyInfix []
(BinOp "==" Infix.Left 4)
(BinOp "==" Infix.Non 4)
(Internal.Types.function
[ Internal.Types.var "a"
, Internal.Types.var "a"
Expand All @@ -124,7 +124,7 @@ equal =
notEqual : Expression -> Expression -> Expression
notEqual =
applyInfix []
(BinOp "/=" Infix.Left 4)
(BinOp "/=" Infix.Non 4)
(Internal.Types.function
[ Internal.Types.var "a"
, Internal.Types.var "a"
Expand Down Expand Up @@ -221,7 +221,7 @@ or =
-}
power : Expression -> Expression -> Expression
power =
applyNumber "^" Infix.Left
applyNumber "^" Infix.Right


{-| `*`
Expand Down Expand Up @@ -417,12 +417,12 @@ query =
-- -}
-- compose : Expression -> Expression -> Expression
-- compose =
-- applyBinOp (BinOp ">>" Infix.Left 9)
-- applyBinOp (BinOp ">>" Infix.Right 9)
-- {-| `<<`
-- -}
-- composeLeft : Expression -> Expression -> Expression
-- composeLeft =
-- applyBinOp (BinOp "<<" Infix.Right 9)
-- applyBinOp (BinOp "<<" Infix.Left 9)


{-| `|>`
Expand Down

0 comments on commit 3fbd890

Please sign in to comment.