package yocaml_unix

  1. Overview
  2. Docs
The Unix runtime for YOCaml

Install

Dune Dependency

Authors

Maintainers

Sources

yocaml-2.3.0.tbz
sha256=216c47d4d954a1e210437101a46736a09fb2e198baf12657c13ade8f24aab7cb
sha512=3bef1e6e93644f860d5b4e72b392530eb0d5ba0ae2cabe198b85b90b92cfd2ad19ff0416d77d46760bcd63b9561c409ef1ecfb11ccacef8e474e7a231234b623

doc/yocaml_unix/Yocaml_unix/index.html

Module Yocaml_unixSource

Unix runtime for YOCaml.

Allows you to run YOCaml on a Unix system based on Unix (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 Unix 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) -> unit

serve ?level ?custom_error_handler ~target ~port program serve the directory target statically and re-run program on each refresh. If the user want to set-up a custom reporter, the level flag should be ignored.

Runtime

Sourcemodule Runtime : sig ... end

Rexports Runtime to be used outside of the package.

OCaml

Innovation. Community. Security.