package utop

  1. Overview
  2. Docs
Universal toplevel for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

utop-2.4.1.tbz
sha256=78296e0566fb22f772de76e043b768bd5f9bb816fa85a56a3ed33739eb65e61e
md5=d51936e2180e42c812c91ec35a7de02a

doc/utop/UTop_history/index.html

Module UTop_history

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.