I am attempting to use the Core
module in utop
, as originated by Jane Street and installed using opam
.
Here\'s the problem
Assuming that you have core properly installed through opam:
# require "core";;
open Core.Std;;
Should work.
I had the same problem, the directions here got it working for me.
https://github.com/realworldocaml/book/wiki/Installation-Instructions#setting-up-and-using-utop
add the following lines to your ~/.ocamlinit file
#use "topfind";;
#thread;;
#camlp4o;;
#require "core.top";;
#require "core.syntax";;