I'm getting ocamldoc
warnings:
Warning: Element MyModule.VariantName not found
when using {!MyModule.VariantName}
in doc comments.
The ocamldoc
doc says
In this chapter, we use the word element to refer to any of the following parts of an OCaml source file: a type declaration, a value, a module, an exception, a module type, a type constructor, a record field, a class, a class type, a class method, a class value or a class inheritance clause.
and later when explaining text formatting:
∣
{! string }
insert a reference to the element named string. string must be a fully qualified element name, for exampleFoo.Bar.t
. The kind of the referenced element can be forced (useful when various elements have the same qualified name) with the following syntax:{! kind : string }
where kind can bemodule
,modtype
,class
,classtype
,val
,type
,exception
,attribute
,method
orsection
.
Can I reference a type constructor using {! string }
?
How do the first group of kinds of elements relate to the second group of kinds of elements?