package utop

  1. Overview
  2. Docs
type entry =
  1. | Input of string
  2. | Output of string
  3. | Error of string
  4. | Warnings of string
  5. | Bad_input of string

Type of a history entry

type t
val create : unit -> t

Create a new, empty history

val contents : t -> entry list

Get the contents of the given history

val add_input : t -> string -> unit

Add an input

val add_output : t -> string -> unit

Add an output

val add_error : t -> string -> unit

Add an error

val add_warnings : t -> string -> unit

Add a warning

val add_bad_input : t -> string -> unit

Add an input that resulted in an error

OCaml

Innovation. Community. Security.