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

In module type, everything links to the whole module type #21

Open
panglesd opened this issue Dec 9, 2022 · 1 comment
Open

In module type, everything links to the whole module type #21

panglesd opened this issue Dec 9, 2022 · 1 comment

Comments

@panglesd
Copy link
Owner

panglesd commented Dec 9, 2022

See for instance in odoc's doc in document/generator_signature/syntax: every link in this is to the whole module type definition.

https://choum.net/panglesd/source_demo/odoc/odoc_document/Odoc_document/Generator_signatures/module-type-SYNTAX/Type/index.html

(the uid version makes it clear that the whole module type def is selected: https://choum.net/panglesd/source_demo2/odoc_document/Odoc_document/Generator_signatures/module-type-SYNTAX/Type/index.html)

@panglesd
Copy link
Owner Author

panglesd commented Dec 9, 2022

This might be some kind of merlin limitation. I was surprised that the following does not compile:

module type S = sig
   val x : int
end


module type B = sig
   val x : S.x
end
File "functor.t/s.ml", line 7, characters 11-14:
7 |    val x : S.x
               ^^^
Error: Unbound module S
Hint: There is a module type named S, but module types are not modules

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

No branches or pull requests

1 participant