Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

camlp4 does not support the 'module type of' construct #5172

Closed
vicuna opened this issue Oct 30, 2010 · 2 comments
Closed

camlp4 does not support the 'module type of' construct #5172

vicuna opened this issue Oct 30, 2010 · 2 comments

Comments

@vicuna
Copy link

vicuna commented Oct 30, 2010

Original bug ID: 5172
Reporter: kim
Assigned to: @xclerc
Status: closed (set by @xavierleroy on 2013-08-31T10:49:12Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.12.1+dev
Fixed in version: 3.12.1+dev
Category: -for Camlp4 use https://github.com/ocaml/camlp4/issues
Monitored by: yziquel @ygrek @glondu @jberdine @hcarty

Bug description

cat t.ml

module type MYHASH =
sig
include module type of Hashtbl
end

ocamlc -c t.ml

camlp4o t.ml

File "t.ml", line 3, characters 1-8:
Parse error: [module_type] expected after "include" (in [sig_item])

this is the case for the current stable release (3.12) as well as the current
3.12.1 branch:
camlp4o -version
3.12.1+dev5 (2010-10-12)

Additional information

as a side note, the status of the 'module type of' extension is not clear.
It is supported by the compiler and documented in the "language extensions" section but it is not listed in the 3.12 release note and not supported by camlp4.

@vicuna
Copy link
Author

vicuna commented Jan 11, 2011

Comment author: @hcarty

This does appear to be supported in camlp5, if that is of any help in adding support in camlp4.

@vicuna
Copy link
Author

vicuna commented Feb 2, 2011

Comment author: @xclerc

fixed in "version/3/12".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant