My own corner of monopam
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

ocaml-arp: enable MDX on lib/arp.mli, fix broken doc example

Run mdx on lib/arp.mli so the {[ ... ]} odoc block now type-checks.

The example used `entry.Arp.ip` for record-field access, but the
`Arp.` qualifier on a field only resolves through `open` or a type
annotation, not as a label prefix. Annotated `(entry : Arp.entry)`
and wrapped in `let print_entries () = ...` so reading the live
system ARP cache does not run at mdx test time.

+7 -2
+3 -2
ocaml-arp/lib/arp.mli
··· 12 12 {2 Example} 13 13 14 14 {[ 15 - let () = 15 + let print_entries () = 16 16 List.iter 17 - (fun entry -> Printf.printf "%s -> %s\n" entry.Arp.ip entry.Arp.mac) 17 + (fun (entry : Arp.entry) -> 18 + Printf.printf "%s -> %s\n" entry.ip entry.mac) 18 19 (Arp.table ()) 19 20 ]} *) 20 21
+4
ocaml-arp/lib/dune
··· 2 2 (name arp) 3 3 (public_name nox-arp) 4 4 (libraries unix)) 5 + 6 + (mdx 7 + (files arp.mli) 8 + (libraries nox-arp))