-
Notifications
You must be signed in to change notification settings - Fork 2
/
oCamlDoc.mli
36 lines (27 loc) · 839 Bytes
/
oCamlDoc.mli
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
open Spotlib.Spot
open Odoc_types
(* CR jfuruse: [kind] should be moved to more general place *)
type kind =
[ `Type
| `Value
| `Class
| `Class_type
| `Exception
| `Module
| `Module_type
]
with conv(ocaml)
type t = Odoc_types.info with conv(ocaml) (** as info string *)
val oformat : Format.t -> t -> unit
(** as an OCaml value *)
val format : Format.t -> t -> unit
(** Human readable *)
val to_string : t -> string (* CR jfuruse: very rough *)
(** Human readable *)
type entry = string * location * t * kind
val oformat_entry : Format.t -> entry -> unit
type error = string list * [ `Chdir
| `Exec of Unix.process_status * string list
| `Load_dump of string ]
with conv(ocaml)
val docs_of_cmt : Cmt_format.cmt_infos -> (entry list, error) Result.t