package fmlib

  1. Overview
  2. Docs

Source file interfaces.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
module type ANY =
sig
  type t
end



module type MONAD =
sig
    type _ t

    val return: 'a -> 'a t

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

    val ( let* ): 'a t -> ('a -> 'b t) -> 'b t
end


module type SORTABLE =
sig
    type t
    val compare: t -> t -> int
end


module type SOURCE =
sig
    type item
    type t
    val has_more: t -> bool
    val peek: t -> item
    val advance: t -> t
end




module type SINK =
sig
    type item
    type t
    val needs_more: t -> bool
    val put: item -> t -> t
    val put_end: t -> t
end
OCaml

Innovation. Community. Security.