At the documentation page of HaXml (here), everywhere used type i, for example: Document i, Element i, Content i and so forth. But I can’t find what kind of type it is, and where it’s being used? Any hints are appreciated.
At the documentation page of HaXml ( here ), everywhere used type i ,
Share
Lower-case letters in a type represent type variables. That is, you can put any type you want in there. In the case of HaXml it is meant to store some extra information in the
Contenttype. There also is a functioninfothat retrieves this extra information (although for some weird reason the parameter is calledtinstead ofi).If you look at Text.XML.HaXml.Parse you can see that this extra parameter is used to store the source location (
Posn) of the parsed document.