package utop

  1. Overview
  2. Docs
Universal toplevel for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

utop-2.14.0.tbz
sha256=0fd5a9bc5b458524a71463a1fe0cd16f9b7be13673ae303118b7216e0d273ba9
sha512=d64a5ab671424279be13ebd080deac7ee46e2c9bc3abcfc37a6dff164124cc3abc52801527c35d9160ec868f9b8f334880026aaeaad02e507112fd8392094845

doc/utop/UTop_history/index.html

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