package catala

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Types

type message = Stdlib.Format.formatter -> unit
type t

Content creation

val of_message : message -> t
val of_result : message -> t

Similar as of_message but tailored for when you want to print the result of a value, etc.

val of_string : string -> t
val prepend_message : t -> (Stdlib.Format.formatter -> unit) -> t

Content manipulation

val to_internal_error : t -> t
val add_suggestion : t -> string list -> t
val add_position : t -> ?message:message -> Pos.t -> t

Content emission

val emit : t -> level -> unit
OCaml

Innovation. Community. Security.