From 7c0a414eeebc7c2ca7a0a6dac8572c8bc28be188 Mon Sep 17 00:00:00 2001 From: nbecker Date: Wed, 27 Feb 2019 13:06:22 +0100 Subject: [PATCH] remove ocaml annotation to prevent inline tests --- README.md | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index a898fe0b..4199b36a 100644 --- a/README.md +++ b/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 session, e.g. `ocamldebug your_program.bc`, -```ocaml +``` # load_printer containers_monomorphic.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 -> unit` can be installed. For example, -```ocaml +``` # install_printer Containers.Int.pp ``` @@ -135,18 +135,17 @@ However, printer combinators are not easily handled by `ocamldebug`. For 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 ready-made combined printing functions, and loading that in ocamldebug. For -instance - -```ocaml -module M = struct let pp_int_list = Containers.(List.pp Int.pp) end +instance +``` +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 M.pp_int_list`. - ## Change Log See [this file](./CHANGELOG.adoc).