Questions tagged [utop]

utop (Universal toplevel) is an improved toplevel (REPL) for OCaml. Not to be confused with [tag:ocaml-toplevel] which ships with the OCaml compiler.

utop is an improved toplevel for . It can run in a terminal or in . It supports line editing, history, real-time and context sensitive completion, colors, and more.

Useful resources

93 questions
-1
votes
1 answer

How can I produce multiline code in utop?

In Haskell we can enter multi-line code at the terminal, by enclosing it between " :{ " and " :} ". For example, typing > :{ main = do > print("Hello") :} in ghci, we can then call main. How can we do this in Ocaml on utop?
user65526
  • 685
  • 6
  • 19
-1
votes
1 answer

What's type FI and UNKNOWN in OCaml?

I'm new to OCaml. I installed utop(version 2.6.0) with latest homebrew on MacOS, installed libraries with opam install core base. Here's my .ocamlinit: #use "topfind";; #thread;; #require "core.top";; open Base;; open Core;; I met an error of type…
linrongbin
  • 2,967
  • 6
  • 31
  • 59
-1
votes
1 answer

Utop Does Not Respond

I downloaded Utop for Ocaml a couple of days ago and it was working fine. Today I was doing some work and I had a bunch of shells running utop at once (I don't see why this would be a problem, but I might as well include details), and I tried…
David Lalo
  • 155
  • 7
1 2 3 4 5 6
7