Module type Indexed_monad_plus.INFIX

Infix operators.

type ('a, 'index) t

The type held by the Indexed Monad Plus.

val (=|<) : ('a -> 'b) -> ('a, 'index) t -> ('b, 'index) t

Infix version of CORE.map.

val (>|=) : ('a, 'index) t -> ('a -> 'b) -> ('b, 'index) t

Infix flipped version of CORE.map.

val (>>=) : ('a, 'index) t -> ('a -> ('b, 'index) t) -> ('b, 'index) t

Infix flipped version of CORE.bind.

val (=<<) : ('a -> ('b, 'index) t) -> ('a, 'index) t -> ('b, 'index) t

Infix version of CORE.bind.

val (>=>) : ('a -> ('b, 'index) t) -> ('b -> ('c, 'index) t) -> 'a -> ('c, 'index) t

Infix version of CORE.compose_left_to_right.

val (<=<) : ('b -> ('c, 'index) t) -> ('a -> ('b, 'index) t) -> 'a -> ('c, 'index) t
val (>>) : (unit, 'index) t -> ('b, 'index) t -> ('b, 'index) t

Sequentially compose two actions, discarding any value produced by the first.

val (<<) : ('a, 'index) t -> (unit, 'index) t -> ('a, 'index) t

Sequentially compose two actions, discarding any value produced by the second.

val (<$>) : ('a -> 'b) -> ('a, 'index) t -> ('b, 'index) t

Infix version of CORE.map.

val (<&>) : ('a, 'index) t -> ('a -> 'b) -> ('b, 'index) t

Flipped and infix version of CORE.map.

val (<$) : 'a -> ('b, 'index) t -> ('a, 'index) t

Infix version of OPERATION.replace.

val ($>) : ('a, 'index) t -> 'b -> ('b, 'index) t

Flipped and infix version of OPERATION.replace.

val (<|>) : ('a, 'index) t -> ('a, 'index) t -> ('a, 'index) t

Infix version of CORE.combine.