-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from codex-semantics-library/mdx
Mdx
- Loading branch information
Showing
9 changed files
with
307 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Patricia Tree | ||
|
||
[![Latest version](https://img.shields.io/badge/version-0.9.0-yellow)](https://github.com/codex-semantics-library/patricia-tree/releases) | ||
[![Latest version](https://img.shields.io/badge/version-0.10.0-yellow)](https://github.com/codex-semantics-library/patricia-tree/releases) | ||
[![OCaml Version](https://img.shields.io/badge/OCaml-4.14_--_5.x-blue?logo=ocaml&logoColor=white)](https://github.com/codex-semantics-library/patricia-tree/blob/main/dune-project) | ||
[![GitHub License](https://img.shields.io/github/license/codex-semantics-library/patricia-tree)](https://github.com/codex-semantics-library/patricia-tree/blob/main/LICENSE) | ||
[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/codex-semantics-library/patricia-tree/ocaml.yml)](https://github.com/codex-semantics-library/patricia-tree/actions/workflows/ocaml.yml) | ||
|
@@ -46,10 +46,10 @@ Alternatively, you can clone the source repository and install with [dune](https | |
git clone [email protected]:codex-semantics-library/patricia-tree.git | ||
cd patricia-tree | ||
opan install . --deps-only | ||
dune build | ||
dune build -p patricia-tree | ||
dune install | ||
# To build documentation | ||
opam install odoc | ||
opam install . --deps-only --with-doc | ||
dune build @doc | ||
``` | ||
|
||
|
@@ -124,8 +124,7 @@ module MakeHeterogeneousMap(Key: HETEROGENEOUS_KEY)(Value: HETEROGENEOUS_VALUE) | |
There are also [hash-consed](https://en.wikipedia.org/wiki/Hash_consing) versions | ||
of these four functors: `MakeHashconsedMap`, `MakeHashconsedSet`, | ||
`MakeHashconsedHeterogeneousMap` and `MakeHashconsedHeterogeneousSet`. | ||
These uniquely number their nodes, and ensure nodes with the same contents are | ||
always physically equal. With this unique numbering: | ||
These uniquely number their nodes, which means: | ||
- `equal` and `compare` become constant time operations; | ||
- two maps with the same bindings (where keys are compared by `KEY.to_int` and | ||
values by `HASHED_VALUE.polyeq`) will always be physically equal; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
(lang dune 2.7) | ||
(lang dune 3.0) | ||
|
||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;; This file is part of the Codex semantics library ;; | ||
|
@@ -25,6 +25,8 @@ | |
|
||
(version 0.10.0) | ||
|
||
(using mdx 0.2) | ||
|
||
(maintainers "Dorian Lesbre <[email protected]>") | ||
|
||
(authors | ||
|
@@ -36,9 +38,9 @@ | |
(bug_reports | ||
"https://github.com/codex-semantics-library/patricia-tree/issues") | ||
|
||
(homepage "https://codex.top/patricia-tree/") | ||
(homepage "https://codex.top/api/patricia-tree/") | ||
|
||
(documentation "https://codex.top/patricia-tree/") | ||
(documentation "https://codex.top/api/patricia-tree/") | ||
|
||
(source | ||
(github "codex-semantics-library/patricia-tree")) | ||
|
@@ -61,6 +63,10 @@ | |
(and | ||
(>= "v0.16.0") | ||
:with-test)) | ||
(mdx | ||
(and | ||
(>= "2.4.1") | ||
:with-test)) | ||
(odoc | ||
(and | ||
(>= "2.4.0") | ||
|
Oops, something went wrong.