mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-16 23:56:43 -05:00
remove ocaml annotation to prevent inline tests
This commit is contained in:
parent
560243ed82
commit
7c0a414eee
1 changed files with 7 additions and 8 deletions
13
README.md
13
README.md
|
|
@ -118,7 +118,7 @@ To print values with types defined in `containers` in the bytecode debugger,
|
||||||
you first have to load the appropriate bytecode archives. After starting a
|
you first have to load the appropriate bytecode archives. After starting a
|
||||||
session, e.g. `ocamldebug your_program.bc`,
|
session, e.g. `ocamldebug your_program.bc`,
|
||||||
|
|
||||||
```ocaml
|
```
|
||||||
# load_printer containers_monomorphic.cma
|
# load_printer containers_monomorphic.cma
|
||||||
# load_printer containers.cma
|
# load_printer containers.cma
|
||||||
```
|
```
|
||||||
|
|
@ -127,7 +127,7 @@ For these archives to be found, you may have to `run` the program first. Now
|
||||||
printing functions that have the appropriate type `Format.formatter -> 'a ->
|
printing functions that have the appropriate type `Format.formatter -> 'a ->
|
||||||
unit` can be installed. For example,
|
unit` can be installed. For example,
|
||||||
|
|
||||||
```ocaml
|
```
|
||||||
# install_printer Containers.Int.pp
|
# install_printer Containers.Int.pp
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -136,17 +136,16 @@ instance `# install_printer Containers.(List.pp Int.pp)` will *not* work out of
|
||||||
the box. You can make this work by writing a short module which defines
|
the box. You can make this work by writing a short module which defines
|
||||||
ready-made combined printing functions, and loading that in ocamldebug. For
|
ready-made combined printing functions, and loading that in ocamldebug. For
|
||||||
instance
|
instance
|
||||||
|
|
||||||
```ocaml
|
|
||||||
module M = struct let pp_int_list = Containers.(List.pp Int.pp) end
|
|
||||||
```
|
```
|
||||||
|
ocaml module M = struct
|
||||||
|
let pp_int_list = Containers.(List.pp Int.pp)
|
||||||
|
end
|
||||||
|
```
|
||||||
loaded via `# load_printer m.cmo` and installed as `# install_printer
|
loaded via `# load_printer m.cmo` and installed as `# install_printer
|
||||||
M.pp_int_list`.
|
M.pp_int_list`.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Change Log
|
## Change Log
|
||||||
|
|
||||||
See [this file](./CHANGELOG.adoc).
|
See [this file](./CHANGELOG.adoc).
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue