Loading ...
Sorry, an error occurred while loading the content.

215Re: module abbreviations in .mli files?

Expand Messages
  • giangiammy
    Apr 1, 2002
    • 0 Attachment
      --- In ocaml_beginners@y..., "bwv211mail" <bwv211mail@y...> wrote:
      > Is there a way to get module abbreviations in .mli files?
      >
      > In my .ml files, I frequently do something like this:
      >
      > module Foo = Really_long_verbose_module_name
      > type t = Foo.t list
      >
      > But then in the .mli file, I'm forced to use:
      >
      > type t = Really_long_verbose_module_name.t list

      What about using:

      open Really_long_verbose_module_name
      type t = t list

      So you don't write at all the module name?

      Regards
      Gianluca
    • Show all 3 messages in this topic