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

restricted use of constraints in module package types #5140

Closed
vicuna opened this issue Sep 1, 2010 · 1 comment
Closed

restricted use of constraints in module package types #5140

vicuna opened this issue Sep 1, 2010 · 1 comment
Assignees

Comments

@vicuna
Copy link

vicuna commented Sep 1, 2010

Original bug ID: 5140
Reporter: montagu
Assigned to: @alainfrisch
Status: closed (set by @alainfrisch on 2012-01-18T09:38:55Z)
Resolution: duplicate
Priority: normal
Severity: minor
Version: 3.12.0
Category: ~DO NOT USE (was: OCaml general)
Duplicate of: #5078
Monitored by: @protz

Bug description

The constraints allowed in package types are inconsistent with the constraints allowed for signatures.
Assume
module type S = sit type 'a t end

Then
module type S' = S with 'a t = 'a list

is allowed, whereas
type s = (module S with type 'a t = 'a list)

is forbidden. It should be allowed as well.

@vicuna
Copy link
Author

vicuna commented Sep 9, 2010

Comment author: @alainfrisch

The branch fstclassmod_parametrized in the OCaml SVN repository allows more kinds of constraints (in particular, constraints on parametrized types). Feel free to try it!

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

2 participants