| 1 |
module Msg : |
| 2 |
sig |
| 3 |
type 'a tag = private .. |
| 4 |
type result = Result : 'a tag * 'a -> result |
| 5 |
val write : 'a tag -> 'a -> unit |
| 6 |
val read : unit -> result |
| 7 |
type 'a tag += Int : int tag |
| 8 |
module type Desc = |
| 9 |
sig |
| 10 |
type t |
| 11 |
val label : string |
| 12 |
val write : t -> string |
| 13 |
val read : string -> t |
| 14 |
end |
| 15 |
module Define : (D : Desc) -> sig type 'a tag += C : D.t tag end |
| 16 |
end |
| 17 |
val write_int : int -> unit = <fun> |
| 18 |
module StrM : sig type 'a Msg.tag += C : string Msg.tag end |
| 19 |
type 'a Msg.tag += String : string Msg.tag |
| 20 |
val write_string : string -> unit = <fun> |
| 21 |
val read_one : unit -> unit = <fun> |
| 22 |
|