caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Christophe TROESTLER <Christophe.Troestler+ocaml@umh.ac.be>
To: mvanier@cs.caltech.edu
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] changing the name of an imported module
Date: Sun, 15 Jun 2008 13:27:20 +0200 (CEST)	[thread overview]
Message-ID: <20080615.132720.1063581437566804413.Christophe.Troestler+ocaml@umh.ac.be> (raw)
In-Reply-To: <4854A04C.1080301@cs.caltech.edu>

On Sat, 14 Jun 2008 21:53:32 -0700, Michael Vanier wrote:
> 
> Is there any way in Ocaml to change the name of an imported module,
> sort of like Haskell's "import qualified" or Python's "import foobar
> as f"?  It's certainly something I could use.

  module U = Unix

will allow to use U.f instead of Unix.f

Cheers,
ChriS


  parent reply	other threads:[~2008-06-15 11:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-15  4:53 Michael Vanier
2008-06-15 11:17 ` [Caml-list] " Stéphane Glondu
2008-06-15 11:27 ` Christophe TROESTLER [this message]
2008-06-16  4:31   ` Michael Vanier
2008-06-16 14:47     ` Christophe TROESTLER

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=20080615.132720.1063581437566804413.Christophe.Troestler+ocaml@umh.ac.be \
    --to=christophe.troestler+ocaml@umh.ac.be \
    --cc=caml-list@inria.fr \
    --cc=mvanier@cs.caltech.edu \
    /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).