package sherlodoc

  1. Overview
  2. Docs
Search engine for OCaml documentation

Install

dune-project
 Dependency

Authors

Maintainers

Sources

odoc-3.1.0.tbz
sha256=355b3cfff4934903cbaed8b51ce35e333e8609932d230294200a9f2d42ffa914
sha512=f78318d0a16164a9cd16ee02f611c2e00d32b772fe38e992d6db6ec94b1c00cd9c377fbfe64031b8f245e57b2f3aac9364108327e7f1693533ddcff94c476e05

doc/src/sherlodoc.storage_marshal/storage_marshal.ml.html

Source file storage_marshal.ml

1
2
3
4
5
6
7
8
9
type writer = out_channel

let open_out = open_out
let close_out = close_out
let save ~db t = Marshal.to_channel db t []

let load name =
  let file = open_in name in
  Fun.protect ~finally:(fun () -> close_in file) (fun () -> [ Marshal.from_channel file ])
OCaml

Innovation. Community. Security.