package yocaml

  1. Overview
  2. Docs
Core engine of the YOCaml Static Site Generator

Install

dune-project
 Dependency

Authors

Maintainers

Sources

yocaml-2.0.0.tbz
sha256=fddf61500e828ac88d86ba982084cc817299302082a6e797b36787ff18235ec2
sha512=8b71a8cecd3e101df55eef0bba7a24d4dde9d66b5ecedd9f6d55834fcdc8d33fd875092ca73a398e1715664caee06cdc1bdb1b4da85bff0a687faac5c0445023

doc/yocaml/Yocaml/Diagnostic/index.html

Module Yocaml.DiagnosticSource

Tools for building error diagnostics. These are essentially pretty-printers for exceptions propagated by the Yocaml.Eff module.

Sourceval exception_to_diagnostic : ?custom_error:(Format.formatter -> Data.Validation.custom_error -> unit) -> ?in_exception_handler:bool -> Format.formatter -> exn -> unit

A pretty printer that tries to return exceptions in the form of diagnostics (a string describing the error).

Sourceval runtime_error_to_diagnostic : Format.formatter -> string -> unit

Uses the same representation as an exception diagnostic to visually render an error message produced by the runtime.