Syncom.Fixity
Description for the fixity of user-defined operators.
The type of annotation for the fixity of an operator.
Let f
be an operator and a
, a1
, a2
be arguments. Then,
f
is prefix, then it is called as f a
f
is infix, then it is called as a1 f a2
f
is postfix, then it is called as a f
val prefix : t
prefix
is Prefix
.
val infix : t
infix
is Infix
val postfix : t
postfix
is Postfix
val is_prefix : t -> bool
is_prefix f
is true
if and only if f
is Prefix
.
val is_infix : t -> bool
is_infix f
is true
if and only if f
is Infix
.
val is_postfix : t -> bool
is_postfix f
is true
if and only if f
is Postfix
.
include Support.Eq.EQ with type t := t
equal a b
is true
if and only if a
and b
are equal. This should satisfy the following properties:
equal a a = true
equal a b
is equivalent to equal b a
equal a b = true
and equal b c = true
, then equal a c = true