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
[Caml-list] referencing the signature inferred from a .mli file?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jacques Garrigue <garrigue@k...>
Subject: Re: [Caml-list] referencing the signature inferred from a .mli file?
From: "Eric C. Cooper" <>
> Suppose I extend an existing module, like the standard List module,
> with some new functions:
> As far as I can tell, I can't write a list_extensions.mli file without
> textually including the standard List .mli file, which isn't very good
> software engineering practice.

I'm not sure of what is good (or bad) software engineering.
However I'm convinced that this is a real pain.

I had a simple proposal: a .mli file would not only be used as a
constraint for the corresponding .ml file, but would also define
a signature of the same name.
Then you could simply write 
  sig include List ... end

But it has not been accepted yet...

Jacques Garrigue

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: