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
Error message for module used where a module type is expected is confusing #6633
Comments
Comment author: @garrigue The message is correct: there is indeed no module type Equal in scope inside foo.ml. |
Comment author: @whitequark Well, I suppose it makes sense. I'm reporting on behalf on someone from IRC, who found it confusing. I do find the fact that modules and module types have different namespaces confusing, as well. |
Comment author: @damiendoligez Maybe it would make sense to append a note saying that there is a module by that name, but it's not a module type, as an extension of the spell-checking idea. Indeed all these namespaces are sometimes confusing. |
Comment author: @whitequark I like this solution. |
This issue has been open one year with no activity. Consequently, it is being marked with the "stale" label. What this means is that the issue will be automatically closed in 30 days unless more comments are added or the "stale" label is removed. Comments that provide new information on the issue are especially welcome: is it still reproducible? did it appear in other contexts? how critical is it? etc. |
Still an issue. |
Anybody has a PR for this? |
(I think we should have a label for not-so-difficult-to-improve error messages) |
We have (Usually when we apply the label we also explain what said newcomer should look at to attack the issue: the broad lines of what we would do ourselves to solve it, starting with which files to look for modification or documentation.) |
Sounds good. Can you add it ? I think this one is pretty straightforward: the error message is created in |
Original bug ID: 6633
Reporter: @whitequark
Status: acknowledged (set by @damiendoligez on 2014-12-22T20:51:24Z)
Resolution: open
Priority: normal
Severity: feature
Version: 4.02.1
Target version: undecided
Category: typing
Monitored by: @gasche
Bug description
E.g.:
equal.ml:
foo.ml:
Actual:
Error: Unbound module type Equal
Expected: something like
Equal is a module and it cannot be used as module type
The text was updated successfully, but these errors were encountered: