List Info

Thread: "ocaml_beginners"::[] names of standard module types




"ocaml_beginners"::[] names of standard module types
country flaguser name
United States
2007-08-23 14:10:56

How can you include a standard module type in your own mli files? For
example, I am writing my own stream module that extends the standard Stream
module.

---- MyStream.mli ----
include Stream
... additional declarations here...

Compiling gives:
File "MyStream.mli", line 1, characters 8-14:
Unbound module type Stream

"Stream" is the module name, but I guess the corresponding module type has a
different name, but what? I could re-write the standard val and type
declarations, but that seems a pain and poor style.

[Non-text portions of this message have been removed]

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )