package utop

  1. Overview
  2. Docs
Universal toplevel for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

utop-2.17.0.tbz
sha256=14e19391ff8b18c15b0117374d4d0fc5720050957bd80298650564b894fa85da
sha512=ff01dc763ac7ebfb921fd10da4eabc3a6ddde90031971630cd27f9bb95e599b9932f9db155e27b066805a0b7038eb3c1df6d409c0471e5ecd23656b43e0cd746

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