<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2009/10/074b30d604f2a25f3d18f0eb9734a022"
  from="RABIH.EL-CHAAR@l..."
  author="RABIH.EL-CHAAR@l..."
  date="2009-10-06T14:57:11"
  subject="RE: [Caml-list] Creating an lwt toplevel"
  prev="2009/10/7ba4d13d6fa24170cbd8758b6cd063b3"
  next="2009/10/aeadbb26bfcd458201f5c2f87546f119"
  prev-in-thread="2009/10/f4c2db533557676eb31a47d6e4761518"
  next-in-thread="2009/10/aeadbb26bfcd458201f5c2f87546f119"
  prev-thread="2009/10/c52bdaf88a932ffd02a17cf12e7a6843"
  next-thread="2009/10/804fc006b1807f248f1f9646c35a70a0"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="Creating an lwt toplevel">
<msg 
  url="2009/10/f4c2db533557676eb31a47d6e4761518"
  from="Alan Schmitt &lt;alan.schmitt@p...&gt;"
  author="Alan Schmitt"
  date="2009-10-06T14:48:41"
  subject="Creating an lwt toplevel">
<msg 
  url="2009/10/074b30d604f2a25f3d18f0eb9734a022"
  from="RABIH.EL-CHAAR@l..."
  author="RABIH.EL-CHAAR@l..."
  date="2009-10-06T14:57:11"
  subject="RE: [Caml-list] Creating an lwt toplevel">
</msg>
<msg 
  url="2009/10/aeadbb26bfcd458201f5c2f87546f119"
  from="Chantal KELLER &lt;chantal.keller@w...&gt;"
  author="Chantal KELLER"
  date="2009-10-06T15:02:03"
  subject="Re: [Caml-list] Creating an lwt toplevel">
<msg 
  url="2009/10/81a8e2b48fa4c82cac8d821bfd920244"
  from="Alan Schmitt &lt;alan.schmitt@p...&gt;"
  author="Alan Schmitt"
  date="2009-10-06T15:14:01"
  subject="Re: [Caml-list] Creating an lwt toplevel">
</msg>
</msg>
<msg 
  url="2009/10/028bde4cf61bc555ad73c915fdae6c20"
  from="Jérémie Dimino &lt;jeremie@d...&gt;"
  author="Jérémie Dimino"
  date="2009-10-06T15:26:03"
  subject="Re: [Caml-list] Creating an lwt toplevel">
<msg 
  url="2009/10/367abf7faacbfc394dcb542dba7bf894"
  from="Alan Schmitt &lt;alan.schmitt@p...&gt;"
  author="Alan Schmitt"
  date="2009-10-07T08:25:06"
  subject="Re: [Caml-list] Creating an lwt toplevel">
</msg>
</msg>
</msg>
</thread>

<contents>
You are probably missing the .cmi files.
The .cma contains the bytecode, but not module signatures.

The toplevel has to see the corresponding .cmi files (#directory might help from the toplevel).

Rabih

-----Message d'origine-----
De : caml-list-bounces@yquem.inria.fr [mailto:caml-list-bounces@yquem.inria.fr] 
Envoyé : mardi 6 octobre 2009 16:48
À : caml-list@inria.fr
Objet : [Caml-list] Creating an lwt toplevel


Hello,

I am trying to experiment with some code that uses lwt, and I would
like to do it in a toplevel. Unfortunately I seem to be missing a
step. Here is what I tried:

# #load "unix.cma";;
# #load "/Users/schmitta/godi/lib/ocaml/pkg-lib/lwt/lwt.cma";;
# open Lwt;;
Error: Unbound module Lwt

I then tried:

$ ocamlfind ocamlmktop -o lwtcaml -package lwt unix.cma lwt.cma
$ ./lwtcaml
        Objective Caml version 3.11.1

# open Lwt;;
Error: Unbound module Lwt

I feel like I'm missing something obvious, but cannot see what it is right
now.

Thanks for any suggestion,

Alan

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

*************************************************************************
This message and any attachments (the "message") are confidential, intended solely for the addressee(s), and may contain legally privileged information.
Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration.   
Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or
falsified.
                              ************
Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et susceptibles de contenir des informations couvertes 
par le secret professionnel. 
Ce message est etabli a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite.
Tout message electronique est susceptible d'alteration. 
La SOCIETE GENERALE et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie.
*************************************************************************

</contents>

</message>

