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