<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EstiloCorreo17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=ES link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US>Hi all,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I think this has to do a little with what Nikolaos Bezirgiannis was saying about edoc generation and types,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I have this little “thing” when I was implementing a log module for a project I am developing.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>For example I use a remote type specification for my own function specification like this:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>-type log_opt() :: show | write | log.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>%% Functions specification.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>%% @doc Logs events information for the system.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>%%<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>%% When <code>Opts</code> is:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>%%<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>%% <ul><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>%% <li><code>show</code> logs to the system console.</li><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>%% <li><code>write</code> logs to the solid state storage.</li><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>%% <li><code>log</code> logs to both system console and solid state storage.</li><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>%% <li><code>error</code> logs errors to both system console and solid state storage<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>%% in a special error format.</li><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>%% </ul><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>-spec log_event(Opts, FormattedStr, Args) -> ok | error when<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> Opts :: log_opt(),<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> FormattedStr :: <b><span style='color:red'>io:format()</span></b>,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> Args :: term().<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>The one in red (io:format()) is an exported type from io module, once I generate the documentation for the module, using edoc:file/1 in this case this function is deprecated but I think it works for the propose, this generate a html documentation including links for the local type log_opt() and the remote type io:format(), the link for my own local type is well, the problem is with the imported type (remote one), when I click the io:format() link it of course try to find it in the working directory of my project, how (if it’s worth) I can refer to the truly type definition in the io module documentation?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p></div></body></html>