caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Re: [Caml-list] how to use a module
@ 2003-06-30 20:11 Jean-Baptiste Rouquier
  2003-07-01  1:49 ` Matt Gushee
  0 siblings, 1 reply; 9+ messages in thread
From: Jean-Baptiste Rouquier @ 2003-06-30 20:11 UTC (permalink / raw)
  To: caml-list

>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


^ permalink raw reply	[flat|nested] 9+ messages in thread
* [Caml-list] how to use a module
@ 2003-06-27 18:05 Jung Woon Ho
  0 siblings, 0 replies; 9+ messages in thread
From: Jung Woon Ho @ 2003-06-27 18:05 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/html, Size: 873 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2003-07-01 20:51 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-30 20:11 [Caml-list] how to use a module Jean-Baptiste Rouquier
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

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).