package yocaml_eio

  1. Overview
  2. Docs
On This Page
  1. Runtime
The Eio runtime YOCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

yocaml-3.0.0.tbz
sha256=c5237c5f345f76c829fd9f4ec5fcd05051e6f4372b24ecf798a48c2649ce9a0e
sha512=babeab686e031160882b739f07773bf1a2ae94a10de8992a4d812b35a487a353c2d3d915ac17fe74b7961570984c62d022c9108aa72562b5d81f93829ef62576

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.