Ocaml utop library paths, Core module

馋奶兔 提交于 2019-12-04 00:26:34

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";;
rgrinberg

Assuming that you have core properly installed through opam:

# require "core";;
open Core.Std;;

Should work.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!