2020-07-12 17:54:10 +03:00
|
|
|
module Prelude.Ops
|
|
|
|
|
|
|
|
-- Numerical operators
|
|
|
|
infix 6 ==, /=, <, <=, >, >=
|
|
|
|
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 ::, ++
|
2021-05-20 14:56:25 +03:00
|
|
|
infixl 7 :<
|
2020-07-12 17:54:10 +03:00
|
|
|
|
2022-02-24 14:12:53 +03:00
|
|
|
-- Equivalence
|
|
|
|
infix 0 <=>
|
|
|
|
|
2020-07-12 17:54:10 +03:00
|
|
|
-- Functor/Applicative/Monad/Algebra operators
|
2021-04-21 11:39:18 +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 <$>, $>, <$
|
2021-03-29 00:11:05 +03:00
|
|
|
infixl 8 <+>
|
2020-07-12 17:54:10 +03:00
|
|
|
|
|
|
|
-- Utility operators
|
2021-01-26 16:27:11 +03:00
|
|
|
infixr 9 ., .:
|
2020-07-12 17:54:10 +03:00
|
|
|
infixr 0 $
|
|
|
|
|
|
|
|
infixl 9 `div`, `mod`
|