Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
type ('a, 'state, 'err) result =
| Ok of 'a * 'state
| Fail of 'err * 'state
| Need of ImapTypes.input -> ('a, 'state, 'err) result
| Flush of string * unit -> ('a, 'state, 'err) result
val flush : (unit, ImapTypes.state, _) control
val fail : 'err -> (_, _, 'err) control
val liftP : 'a ImapParser.t -> ('a, ImapTypes.state, ImapTypes.error) control
val send : string -> (unit, ImapTypes.state, _) control
val ret : 'a -> ('a, _, _) control
val gets : ('state -> 'a) -> ('a, 'state, _) control
val modify : ('state -> 'state) -> (unit, 'state, _) control
val get : ('state, 'state, _) control
val put : 'state -> (unit, 'state, _) control
val run :
('a, ImapTypes.state, 'err) control ->
ImapTypes.state ->
('a, ImapTypes.state, 'err) result