package yocaml_eio

  1. Overview
  2. Docs
The Eio runtime YOCaml

Install

Dune Dependency

Authors

Maintainers

Sources

yocaml-2.1.0.tbz
sha256=e5ab173efd4c356dfee3e9af2165762ec4f1b5d38bdf1000d13e5eb6f18edbae
sha512=77ce2f269a6058c91ed75dee164cf9073147aa5d48c5dbdb2d6b282fc184d3a9b8155e772dd24acb8c0618ef7e47c0222bf65e13ecc3e08fab87351ea4f27192

doc/yocaml_eio/Yocaml_eio/index.html

Module Yocaml_eioSource

Eio runtime for YOCaml.

Allows you to run YOCaml on a Unix system based on Eio (or source service for more complex runtimes).

Sourceval run : ?level:Yocaml_runtime.Log.level -> ?custom_error_handler: (Format.formatter -> Yocaml.Data.Validation.custom_error -> unit) -> (unit -> unit Yocaml.Eff.t) -> unit

run ?custom_error_handler program Runs a Yocaml program in the Eio runtime. The log level (default: Debug) and a custom_error_handler can be passed as arguments to change the reporting level and use a default log reporter, and to pretty print user defined errors. If the user want to set-up a custom reporter, the level flag should be ignored.

Sourceval serve : ?level:Yocaml_runtime.Log.level -> ?custom_error_handler: (Format.formatter -> Yocaml.Data.Validation.custom_error -> unit) -> target:Yocaml.Path.t -> port:int -> (unit -> unit Yocaml.Eff.t) -> 'a

serve ?level ?custom_error_handler ~target ~port program serve the directory target statically and re-run program on each refresh.

Runtime

Sourcemodule Runtime : sig ... end

Rexports Runtime to be used outside of the package.

OCaml

Innovation. Community. Security.

On This Page
  1. Runtime