Idris2/libs/prelude/Prelude/Ops.idr

31 lines
456 B
Idris
Raw Normal View History

module Prelude.Ops
-- Numerical operators
infix 6 ==, /=, <, <=, >, >=
infixl 8 +, -
infixl 9 *, /
-- Boolean operators
infixr 5 &&
infixr 4 ||
-- List and String operators
infixr 7 ::, ++
infixl 7 :<
2022-02-24 14:12:53 +03:00
-- Equivalence
infix 0 <=>
-- Functor/Applicative/Monad/Algebra operators
infixl 1 >>=, =<<, >>, >=>, <=<, <&>
infixr 2 <|>
infixl 3 <*>, *>, <*
2020-08-22 10:13:34 +03:00
infixr 4 <$>, $>, <$
infixl 8 <+>
-- Utility operators
infixr 9 ., .:
infixr 0 $
infixl 9 `div`, `mod`