chore(doc): adapt module docstring for the index page

This commit is contained in:
Fardale 2021-11-11 14:40:35 +01:00
parent db1ebaf3ce
commit 099f2e176f
68 changed files with 71 additions and 77 deletions

View file

@ -1,7 +1,6 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Array utils} *)
(** Array utils *)
type 'a iter = ('a -> unit) -> unit
(** Fast internal iterator.
@ -18,7 +17,7 @@ type 'a printer = Format.formatter -> 'a -> unit
include module type of CCShimsArray_
val empty : 'a t
(** [empty] is the empty array, physically equal to [||]. *)
(** [empty] is the empty array, physically equal to [[||]]. *)
val equal : 'a equal -> 'a t equal
(** [equal eq a1 a2] is [true] if the lengths of [a1] and [a2] are the same

View file

@ -1,6 +1,6 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Array utils} *)
(** Array utils (Labeled version of {!CCArray}) *)
type 'a iter = ('a -> unit) -> unit
(** Fast internal iterator.

View file

@ -1,6 +1,6 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Basic Bool functions} *)
(** Basic Bool functions *)
type t = bool

View file

@ -1,7 +1,7 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Canonical S-expressions}
(** Canonical S-expressions
See {{: https://en.wikipedia.org/wiki/Canonical_S-expressions} wikipedia}.
These S-expressions are binary safe.

View file

@ -1,6 +1,6 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Utils around char}
(** Utils around char
@since 0.14 *)

View file

@ -1,6 +1,6 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Either Monad}
(** Either Monad
Module that is compatible with Either form OCaml 4.12 but can be use with any
ocaml version compatible with container

View file

@ -3,7 +3,7 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Equality Combinators} *)
(** Equality Combinators *)
(** @since 1.2 *)

View file

@ -1,7 +1,7 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Equality Combinators} *)
(** Equality Combinators (Labeled version of {!CCEqual}) *)
(** @since 1.2 *)

View file

@ -1,7 +1,7 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Basic operations on floating-point numbers}
(** Basic operations on floating-point numbers
@since 0.6.1 *)
open CCShims_

View file

@ -1,7 +1,7 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Helpers for Format}
(** Helpers for Format
@since 0.8 *)

View file

@ -1,7 +1,7 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Basic Functions} *)
(** Basic operations on Functions *)
include module type of CCShimsFun_

View file

@ -1,7 +1,7 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Hash combinators}
(** Hash combinators
The API of this module is stable as per semantic versioning, like the
rest of containers. However the exact implementation of hashing function

View file

@ -1,7 +1,7 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Extension to the standard Hashtbl}
(** Extension to the standard Hashtbl
@since 0.4 *)

View file

@ -1,7 +1,7 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Leftist Heaps}
(** Leftist Heaps
Implementation following Okasaki's book. *)

View file

@ -1,6 +1,6 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 IO Utils}
(** 1 IO Utils
Simple utilities to deal with basic Input/Output tasks in a resource-safe
way. For advanced IO tasks, the user is advised to use something

View file

@ -1,7 +1,7 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Basic Int functions} *)
(** Basic Int functions *)
include module type of CCShimsInt_

View file

@ -1,8 +1,6 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Int32}
Helpers for 32-bit integers.
(** Helpers for 32-bit integers.
This module provides operations on the type int32 of signed 32-bit integers.
Unlike the built-in int type, the type int32 is guaranteed to be exactly

View file

@ -1,8 +1,6 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Int64}
Helpers for 64-bit integers.
(** Helpers for 64-bit integers.
This module provides operations on the type int64 of signed 64-bit integers.
Unlike the built-in int type, the type int64 is guaranteed to be exactly

View file

@ -1,7 +1,7 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Complements to list} *)
(** Complements to List *)
type 'a iter = ('a -> unit) -> unit
(** Fast internal iterator.

View file

@ -1,7 +1,7 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Complements to list} *)
(** Complements to ListLabels *)
type 'a iter = ('a -> unit) -> unit
(** Fast internal iterator.

View file

@ -1,7 +1,7 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Extensions of Standard Map}
(** Extensions of Standard Map
Provide useful functions and iterators on [Map.S]
@since 0.5 *)

View file

@ -1,8 +1,6 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Nativeint}
Helpers for processor-native integers
(** Helpers for processor-native integers
This module provides operations on the type [nativeint] of signed 32-bit integers
(on 32-bit platforms) or signed 64-bit integers (on 64-bit platforms).

View file

@ -1,4 +1,4 @@
(** Option module
(** Previous Option module
@deprecated use `CCOption` instead. *)
[@@@ocaml.deprecated "use CCOption instead"]

View file

@ -1,6 +1,6 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** Options
(** Basic operations on the option type.
This module replaces `CCOpt`.
@since 3.6 *)

View file

@ -1,7 +1,8 @@
(** Order combinators *)
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Comparisons} *)
(** {2 Comparisons} *)
type 'a t = 'a -> 'a -> int
(** Comparison (total ordering) between two elements, that returns an int. *)

View file

@ -1,7 +1,7 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Tuple Functions} *)
(** Tuple Functions *)
type ('a,'b) t = ('a * 'b)

View file

@ -1,7 +1,7 @@
(* This file is free software. See file "license" for more details. *)
(** {1 Very Simple Parser Combinators}
(** Very Simple Parser Combinators
These combinators can be used to write very simple parsers, for example
to extract data from a line-oriented file, or as a replacement to {!Scanf}.

View file

@ -1,7 +1,7 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Random Generators} *)
(** Random Generators *)
include module type of struct include Random end
(** {{: https://caml.inria.fr/pub/docs/manual-ocaml/libref/Random.html} Documentation for the standard Random module}*)

View file

@ -1,7 +1,7 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 References}
(** Helpers for references
@since 0.9 *)
type 'a printer = Format.formatter -> 'a -> unit

View file

@ -1,6 +1,6 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Error Monad}
(** Error Monad
Uses the new "result" type from OCaml 4.03.

View file

@ -1,7 +1,7 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Helpers for the standard {b Seq} type}
(** Helpers for the standard {b Seq} type
See {{: https://github.com/c-cube/oseq/} oseq} for a richer API.
*)

View file

@ -1,7 +1,7 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Wrapper around Set}
(** Wrapper around Set
@since 0.9 *)

View file

@ -1,6 +1,6 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Handling S-expressions}
(** Handling S-expressions
@since 3.0 moved into containers-core, previously in [containers.sexp]
*)

View file

@ -1,7 +1,7 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Basic String Utils} *)
(** Basic String Utils *)
type 'a iter = ('a -> unit) -> unit
(** Fast internal iterator.

View file

@ -1,7 +1,7 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Basic String Utils} *)
(** Basic String Utils (Labeled version of {!CCString}) *)
type 'a iter = ('a -> unit) -> unit
(** Fast internal iterator.

View file

@ -1,5 +1,5 @@
(** {1 Unicode String, in UTF8} *)
(** Unicode String, in UTF8 *)
(** A unicode string represented by a utf8 bytestring. This representation
is convenient for manipulating normal OCaml strings that are encoded

View file

@ -1,6 +1,6 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Growable, mutable vector} *)
(** Growable, mutable vector *)
type ro = [`RO]
type rw = [`RW]

View file

@ -1,7 +1,7 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Drop-In replacement to Stdlib} *)
(** Drop-In replacement to Stdlib *)
module Array = CCArray
module Bool = CCBool

View file

@ -1,7 +1,7 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Drop-In replacement to Stdlib} *)
(** Drop-In replacement to Stdlib *)
module Array = CCArrayLabels
module Bool = CCBool

View file

@ -1,7 +1,7 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {2 Imperative Bitvectors}
(** Imperative Bitvectors
{b BREAKING CHANGES} since 1.2:
size is now stored along with the bitvector. Some functions have

View file

@ -1,6 +1,6 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Bijection}
(** Functor to build a bijection
Represents 1-to-1 mappings between two types. Each element from the "left"
is mapped to one "right" value, and conversely.

View file

@ -1,9 +1,9 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Bit Field}
(** Efficient Bit Field for up to 31 or 61 fiels
This module defines efficient bitfields
up to 30 or 62 bits (depending on the architecture) in
up to 31 or 61 bits (depending on the architecture) in
a relatively type-safe way.
{[

View file

@ -1,7 +1,7 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Caches}
(** Caches Utils
Particularly useful for memoization. See {!with_cache} and {!with_cache_rec}
for more details.

View file

@ -1,6 +1,6 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Imperative deque}
(** Imperative deque
This structure provides fast access to its front and back elements,
with O(1) operations. *)

View file

@ -1,7 +1,7 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Functional queues} *)
(** Functional queues *)
type 'a iter = ('a -> unit) -> unit
type 'a equal = 'a -> 'a -> bool

View file

@ -1,6 +1,6 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Functional Vectors} *)
(** Functional Vectors *)
(** Tree with a large branching factor for logarithmic operations with
a low multiplicative factor.

View file

@ -1,7 +1,7 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Simple Graph Interface}
(** Simple Graph Interface
A collections of algorithms on (mostly read-only) graph structures.
The user provides her own graph structure as a [('v, 'e) CCGraph.t],

View file

@ -1,6 +1,6 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Mutable Set}
(** Mutable Set
{b status: unstable}

View file

@ -1,6 +1,6 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Hash Tries}
(** Hash Tries
Trie indexed by the hash of the keys, where the branching factor is fixed.
The goal is to have a quite efficient functional structure with fast

View file

@ -1,7 +1,7 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Associative containers with Heterogeneous Values}
(** Associative containers with Heterogeneous Values
This is similar to {!CCMixtbl}, but the injection is directly used as
a key.

View file

@ -1,7 +1,7 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Immutable Arrays}
(** Immutable Arrays
Purely functional use of arrays. Update is costly, but reads are very fast.
Sadly, it is not possible to make this type covariant without using black

View file

@ -1,7 +1,7 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Map specialized for Int keys}
(** Map specialized for Int keys
{b status: stable}
@since 0.10 *)

View file

@ -1,6 +1,6 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Lazy Tree Structure}
(** Lazy Tree Structure
This structure can be used to represent trees and directed
graphs (as infinite trees) in a lazy fashion. Like {!CCKList}, it
is a structural type. *)

View file

@ -1,7 +1,7 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Lazy List}
(** Lazy List
@since 0.17 *)

View file

@ -1,7 +1,7 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Maps with Heterogeneous Values}
(** Maps with Heterogeneous Values
{b status: experimental}

View file

@ -1,7 +1,7 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Set of Heterogeneous Values}
(** Set of Heterogeneous Values
{[
let k1 : int key = newkey () in

View file

@ -1,7 +1,7 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Hash Table with Heterogeneous Keys}
(** Hash Table with Heterogeneous Keys
From https://github.com/mjambon/mixtbl (thanks to him).
Example:

View file

@ -1,6 +1,6 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Multimap} *)
(** Map that can map key to several values *)
type 'a iter = ('a -> unit) -> unit

View file

@ -1,7 +1,7 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Multiset} *)
(** Multiset *)
type 'a iter = ('a -> unit) -> unit

View file

@ -2,7 +2,7 @@
As such it is under the Apache 2 License.
*)
(** {1 Mutable Heaps}
(** Mutable Heaps
The classic binary heap in a vector.

View file

@ -24,7 +24,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*)
(** {1 Persistent Arrays}
(** Persistent Arrays
From the paper by Jean-Christophe Filliâtre,
"A persistent Union-Find data structure", see

View file

@ -1,7 +1,7 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Persistent hash-table on top of OCaml's hashtables}
(** Persistent hash-table on top of OCaml's hashtables
Almost as efficient as the regular Hashtbl type, but with a persistent
interface (rewinding changes to get back in the past history). This is

View file

@ -1,6 +1,6 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Random-Access Lists}
(** Random-Access Lists
This is an OCaml implementation of Okasaki's paper
"Purely Functional Random Access Lists". It defines a list-like data

View file

@ -3,7 +3,7 @@
(* Copyright (C) 2015 Simon Cruanes, Carmelo Piccione *)
(** {1 Circular Buffer (Deque)}
(** Circular Buffer (Deque)
Useful for IO, or as a bounded-size alternative to {!Queue} when
batch operations are needed.

View file

@ -1,7 +1,7 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Functional queues (fifo)} *)
(** Functional queues (fifo) *)
(** Simple implementation of functional queues
@since 1.3 *)

View file

@ -1,7 +1,7 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Prefix Tree} *)
(** Prefix Tree *)
type 'a iter = ('a -> unit) -> unit
type 'a ktree = unit -> [`Nil | `Node of 'a * 'a ktree list]

View file

@ -1,6 +1,6 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Weight-Balanced Tree}
(** Weight-Balanced Tree
{b status: experimental}

View file

@ -1,7 +1,7 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 List Zipper}
(** List Zipper
@since 1.0 *)