janestreet / core

Jane Street Capital's standard library overlay
MIT License
1.11k stars 111 forks source link

Cannot open Core.Std within utop #66

Closed chydenius closed 8 years ago

chydenius commented 8 years ago

In terminal, I can verify that I have installed core using OPAM:

:~/.opam/packages$ ls base-bigarray bitcoin cryptokit lwt pa_test variantslib base-bytes camlp4 custom_printf ocamlbuild pipebang yojson base-no-ppx camomile easy-format ocamlfind react zed base-threads comparelib enumerate omake sexplib base-unix core fieldslib ounit type_conv biniou core_kernel herelib pa_bench typerep bin_prot cppo lambda-term pa_ounit utop

However, when I try to open Core.Std in utop, I get:

utop # open Core.Std;; Error: Unbound module Core

Am I doing something wrong? I have restarted utop and my terminal several times, and nothing helps.

trefis commented 8 years ago

You need to #require core;; before being able to open. Also to list the installed packages one usually do ocamlfind list

chydenius commented 8 years ago

Thank you for the fast response!

This seems to have done the trick:

utop # #require "core";; ─( 12:18:22 )─< command 6 >────────────────────────────{ counter: 0 }─ utop # open Core.Std;; ─( 12:19:51 )─< command 7 >────────────────────────────{ counter: 0 }─