From: Richard Jones <rich@annexia.org>
To: caml-list@inria.fr
Subject: Usability problems with ocamlmktop / toplevels
Date: Fri, 12 Aug 2005 16:28:27 +0100 [thread overview]
Message-ID: <20050812152827.GA4162@furbychan.cocan.org> (raw)
I'm experimenting with building a custom toplevel, but have run across
some problems.
(1) I want to have some modules 'open' already in the toplevel - we
have lots and lots of modules, some with long names, and most of these
should be opened by default. The partial solution is to add lots of
'open' statements to a .ocamlinit file in the current directory, but
this assumes that you know what the current directory is, and that you
only need to use one type of toplevel in that directory.
(2) Toplevels don't work the same way as 'ocaml'. The difference is
that our custom toplevel ignores any command line arguments passed to
it, whereas 'ocaml foo.ml' runs 'foo.ml'. This means that we can't
use our toplevel to write scripts:
#!./adwords
(or variations we've tried) doesn't work.
(3) Some libraries are linked into the toplevel, but apparently can't
be accessed. For instance, Calendar ExtLib must be linked into the
toplevel because our main code relies on them; however no symbols from
either are visible:
$ ./adwords
Objective Caml version 3.08.2
# Date.today ();;
Unbound value Date.today
# open Date;;
Unbound module Date
# ExtString.String.split;;
Unbound value ExtString.String.split
Rich.
PS. This is how we build the toplevel:
ocamlfind ocamlmktop -custom -package pxp-lex-iso88591,pxp-engine,netclient,netstring,extlib,pcre,calendar -I ../ocsoap -I ../csv -linkpkg ../ocsoap/oCSoap.cmo ../csv/csv.cma adwords.cma -o adwords
--
Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology - http://merjis.com
Team Notepad - intranets and extranets for business - http://team-notepad.com
next reply other threads:[~2005-08-12 15:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-12 15:28 Richard Jones [this message]
2005-08-12 15:45 ` [Caml-list] " Olivier Andrieu
2005-08-15 13:35 ` Gerd Stolpmann
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=20050812152827.GA4162@furbychan.cocan.org \
--to=rich@annexia.org \
--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