Ocaml utop library paths, Core module

后端 未结 2 947
误落风尘
误落风尘 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:19

    Assuming that you have core properly installed through opam:

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

    Should work.

    0 讨论(0)
  • 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";;
    
    0 讨论(0)
提交回复
热议问题