package utop

  1. Overview
  2. Docs

Module UTop_historySource

Sourcetype 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

Sourcetype t
Sourceval create : unit -> t

Create a new, empty history

Sourceval contents : t -> entry list

Get the contents of the given history

Sourceval add_input : t -> string -> unit

Add an input

Sourceval add_output : t -> string -> unit

Add an output

Sourceval add_error : t -> string -> unit

Add an error

Sourceval add_warnings : t -> string -> unit

Add a warning

Sourceval add_bad_input : t -> string -> unit

Add an input that resulted in an error

OCaml

Innovation. Community. Security.