caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Jean-Baptiste Rouquier" <jb.rouquier@wanadoo.fr>
To: <caml-list@inria.fr>
Subject: Re: [Caml-list] how to use a module
Date: Mon, 30 Jun 2003 22:11:54 +0200	[thread overview]
Message-ID: <004d01c33f46$2f16f480$fdbf0950@zofo> (raw)

>I'm having trouble (using the modules or the files that I wrote)   (in the
interactive mode of  OCaml).


(*First, let Caml know where you put your files if they aren't in the
current directory :*)
#directory "foo/bar";;

(*This is the "include" directive (see the manual) :*)
#use "baz.ml";;

(*if you file is already compiled, you can use :*)
#load "qux.cmo";;

(*but you have to "#load" all the files that egg uses, for instance if
egg.ml contains "Graphics.open_graph", then you must load graphics before
(as when you link the main programm) :*)
#load "graphics.cma";;
#load "egg.cmo";;

(*If you want to state "quz ()" instead of "Egg.quz ()", just open this
module (it requires egg.cmi in the list of searching directories) :*)
open Egg;;

JB


-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


             reply	other threads:[~2003-06-30 20:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-30 20:11 Jean-Baptiste Rouquier [this message]
2003-07-01  1:49 ` Matt Gushee
2003-07-01 10:32   ` Remi Vanicat
2003-07-01 18:29     ` Ledit (was Re: [Caml-list] how to use a module) Matt Gushee
2003-07-01 18:41       ` Manos Renieris
2003-07-01 18:49       ` Neel Krishnaswami
2003-07-01 19:24         ` Matt Gushee
2003-07-01 20:51         ` Karl Zilles
  -- strict thread matches above, loose matches on Subject: below --
2003-06-27 18:05 [Caml-list] how to use a module Jung Woon Ho

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='004d01c33f46$2f16f480$fdbf0950@zofo' \
    --to=jb.rouquier@wanadoo.fr \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).