Skip to content

Commit

Permalink
copy module instead of include (ocaml/odoc#1162)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlesbre committed Jul 17, 2024
1 parent 3861e5d commit 2fcf6e5
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/PatriciaTree.ml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
(**************************************************************************)

include Ints
include Signatures
module Sigs = Sigs
include Key_value
include Functors
include Nodes
10 changes: 5 additions & 5 deletions src/PatriciaTree.mli
Original file line number Diff line number Diff line change
Expand Up @@ -115,18 +115,18 @@
informative; log(n) corresponds to the real complexity in usual
distributions. *)

(** {1 Integer manipulations} *)

include module type of Ints

(** {1 Signatures} *)

include module type of Signatures
module Sigs = Sigs

(** {1 Functors} *)

include module type of Functors

(** {1 Miscellaneous utilities} *)

include module type of Ints

(** {1 Default KEY and VALUE implementations} *)
(** These can be used as parameters to {!MakeMap}/{!MakeSet} functors in the
most common use cases. *)
Expand Down
2 changes: 1 addition & 1 deletion src/functors.ml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
(**************************************************************************)

open Ints
open Signatures
open Sigs
open Key_value
open Nodes

Expand Down
2 changes: 1 addition & 1 deletion src/functors.mli
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
(* for more details (enclosed in the file LICENSE). *)
(**************************************************************************)

open Signatures
open Sigs

(** This section presents the functors which can be used to build patricia tree
maps and sets. *)
Expand Down
2 changes: 1 addition & 1 deletion src/key_value.ml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
(* for more details (enclosed in the file LICENSE). *)
(**************************************************************************)

open Signatures
open Sigs

(** {1 Keys and values} *)

Expand Down
2 changes: 1 addition & 1 deletion src/key_value.mli
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
(* for more details (enclosed in the file LICENSE). *)
(**************************************************************************)

open Signatures
open Sigs

module Value : VALUE with type 'a t = 'a
(** Default implementation of {!VALUE}, used in {!MakeMap}.
Expand Down
2 changes: 1 addition & 1 deletion src/nodes.ml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
(**************************************************************************)

open Ints
open Signatures
open Sigs

let sdbm x y = y + (x lsl 16) + (x lsl 6) - x
(** Combine two numbers into a new hash *)
Expand Down
2 changes: 1 addition & 1 deletion src/nodes.mli
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
(* for more details (enclosed in the file LICENSE). *)
(**************************************************************************)

open Signatures
open Sigs

(** {1 Basic nodes} *)

Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions src/test/patriciaTreeTest.ml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
(**************************************************************************)

open PatriciaTree
open Sigs

let check_highest_bit x res =
(* Printf.printf "CHECK_HIGHEST_BIT: %x %x\n%!" x res; *)
Expand Down

0 comments on commit 2fcf6e5

Please sign in to comment.