Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
changing the name of an imported module
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-06-15 (11:27)
From: Christophe TROESTLER <Christophe.Troestler+ocaml@u...>
Subject: Re: [Caml-list] changing the name of an imported module
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