-
Notifications
You must be signed in to change notification settings - Fork 1
/
humpflat.mli
36 lines (28 loc) · 722 Bytes
/
humpflat.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
(** Flatten Hump data *)
open Utils
open Sig
open Hump
val verbose : bool ref
(** Make things in this module more verbose *)
type ent = (k * path) * v
[@@deriving conv{ocaml_of}]
val flatten
: Hump.path
-> Hump.expr
-> ent list
(** [flatten_package ~datadir package].
[datadir]/[package].cmtz must exist.
*)
val flatten_package
: datadir: FilePath.t
-> string (*+ package name such as "stdlib" *)
-> (Hump.path * ent list) list
val load_package
: datadir: FilePath.t
-> string (*+ package name *)
-> (Hump.path * Hump.expr) list
val eval_package
: datadir:FilePath.t
-> string (*+ package name *)
-> (Hump.path * Hump.expr) list
val test_stdlib : FilePath.t (*+ data dir *) -> unit