<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">You should also add "#camlp4o" so that toplevel syntax extensions work too.<div><br></div><div>I'd really recommend using 'utop' (installable via OPAM) instead of the default toplevel. It doesn't require the extra -I that the default toplevel needs, and has a really nice interactive interpreter.</div><div><br></div><div>My full .ocamlinit with utop is:</div><div><br></div><div><div>#use "topfind"</div><div>#camlp4o</div><div>#thread</div><div>#require "core.top";;</div><div>#require "async";;</div><div>open Core.Std</div><div>open Async.Std</div><div><br></div><div><br></div><div>-anil</div><div><br></div><div><div>On 7 Nov 2012, at 05:33, Francois Berenger <<a href="mailto:francois.berenger.working@gmail.com">francois.berenger.working@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Thanks a lot.<br><br>So, the whole recipe in my case was:<br><br>ocaml -I $OCAML_TOPLEVEL_PATH<br>#thread;;<br>#require "core.top";;<br>#require "async";;<br><br>Regards,<br>F.<br><br>On Wednesday, November 7, 2012 12:09:15 PM UTC+9, Sebastien Mondet wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><br><br>I think that one is the <br> #thread;;<br>thing<br><br><br><div><br><br><div class="gmail_quote">On Tue, Nov 6, 2012 at 10:06 PM, Francois Berenger <span dir="ltr"><<a href="javascript:" target="_blank" gdf-obfuscated-mailto="jw3w2Gzjnr8J">francois.ber...@<wbr>gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks! That fixes the problem partially.<br><br>Now, I get:<br><br># #require "core.top";;<br># #require "core.top";;stem/lib/core/<wbr>core.cma: loaded<br>
Error: Reference to undefined global `Condition'<br># #require "core";;<br># #require "core";;m/system/lib/core/<wbr>core.cma: loaded<br>Error: Reference to undefined global `Condition'<br># #require "async";;<br>
# #require "async";;/system/lib/core/<wbr>core.cma: loaded<br>Error: Reference to undefined global `Condition'<br><br>Any hint?<div><br><br>On Wednesday, November 7, 2012 11:54:47 AM UTC+9, Sebastien Mondet wrote:</div>
<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br>I'm not sure if this is your problem, but there was something with the toplevel (comming with the system compiler) not knowing about opam packages. <br>
I have to launch:<br><br> ocaml -I $OCAML_TOPLEVEL_PATH<br><br>
(the variable OCAML_TOPLEVEL_PATH is set by eval `opam config -env`)<br></div><div><div><br><br><div class="gmail_quote">On Tue, Nov 6, 2012 at 9:37 PM, Francois Berenger <span dir="ltr"><<a>francois.ber...@<u></u>gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Apparently, ocamlfind knows where these libraries are:<br><br>$ ocamlfind -query core<br>/home/berenger/.opam/system/<u></u>li<wbr>b/core<br>
$ ocamlfind -query async<br>/home/berenger/.opam/system/<u></u>li<wbr>b/async<br>$ ocamlfind -query async_extra<br>/home/berenger/.opam/system/<u></u>li<wbr>b/async_extra<div><br><br>On Wednesday, November 7, 2012 11:32:43 AM UTC+9, Francois Berenger wrote:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br><br>I'd like to play with core in my toplevel.<br><br>Is there a recipe?<br><br>I have installed everything with OPAM:<br>$ opam list | egrep "core|async"<br>async 108.07.01 Monadic concurrency library<br>
async_core 108.07.01 Monadic concurrency library<br>async_extra 108.07.01 Monadic concurrency library<br>async_unix 108.07.01 Monadic concurrency library<br>core 108.07.01 Industrial strength alternative to OCaml's standard library<br>
core_extended -- Extra components that are not as closely vetted or as stable as Core<br><br>In my toplevel, I type<br>#use "topfind";;<br>#list;;<br><br>Nothing about core or async shows up.<br>
While parmap is there, for example.<br><br>Is this normal?<br><br>I guess there is some configuration file of findlib to tweak somewhere.<br><br>Regards,<br>F.<br><br></blockquote></div></blockquote></div><br></div>
</div></blockquote></blockquote></div><br></div>
</blockquote></blockquote></div><br></div></body></html>