Idris2/libs/prelude/Prelude/Ops.idr
André Videla 75032a7164
Emit warning for fixities with no export modifiers (#3234)
* Emit warning for fixities with no export modifiers

This is to help update all the existing code to program with explicit
fixity export directives in preparation for the behavioral change where
they will become private by default.
2024-04-03 15:41:57 +01:00

31 lines
568 B
Idris

module Prelude.Ops
-- Numerical operators
export infix 6 ==, /=, <, <=, >, >=
export infixl 8 +, -
export infixl 9 *, /
-- Boolean operators
export infixr 5 &&
export infixr 4 ||
-- List and String operators
export infixr 7 ::, ++
export infixl 7 :<
-- Equivalence
export infix 0 <=>
-- Functor/Applicative/Monad/Algebra operators
export infixl 1 >>=, =<<, >>, >=>, <=<, <&>
export infixr 2 <|>
export infixl 3 <*>, *>, <*
export infixr 4 <$>, $>, <$
export infixl 8 <+>
-- Utility operators
export infixr 9 ., .:
export infixr 0 $
export infixl 9 `div`, `mod`