Ocaml utop library paths, Core module

后端 未结 2 1173
误落风尘
误落风尘 2021-02-19 23:41

I am attempting to use the Core module in utop, as originated by Jane Street and installed using opam.

Here\'s the problem

2条回答
  •  轮回少年
    2021-02-20 00:21

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

提交回复
热议问题