hermeticversion Documentation on ocaml.org

Enforce Eio's capabilities at compile time

Hermetic is a prelude that restates OCaml's standard library. In a file that opens it, a standard library, Unix or Thread value that reaches the file system, a clock, the network, the standard streams, entropy, a domain or a child process on its own is a type error. This covers Sys too, so Sys.remove and Sys.command are refused. Its alert names the Eio.Stdenv capability to take instead. The unsafe operations that could forge a capability, such as Obj.magic or a Marshal reader, are refused too.

Tags stdlib prelude capability eio
AuthorThomas Gazagnaire <thomas@gazagnaire.org>
LicenseISC
Published
Homepagehttps://github.com/samoht/ocaml-hermetic
Issue Trackerhttps://github.com/samoht/ocaml-hermetic/issues
MaintainerThomas Gazagnaire <thomas@gazagnaire.org>
Dependencies
Source [http] https://github.com/samoht/ocaml-hermetic/releases/download/0.1.0/hermetic-0.1.0.tbz
sha256=3e4bcc748aaf1b4119d3f48301007e85aad489fe59952eba25f2cf915897c352
sha512=4eb66393268005675e511a3894d4ab11d39a979b48a0a90bc7b5d9d811226d9f155fb18bbd8cc2e25201e8ba0b0af5a227c161ddcfb701b229de7c764679f38f
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/hermetic/hermetic.0.1.0/opam
No package is dependent