Compile with debug_info and use beam_lib then, you'll have attributes like:<div><br></div><div><div>}attribute,6,type,{agner_repo,{type,6,string,[]},[]}},</div></div><div><br></div><div>and </div><div><div><br></div><div>{attribute,115,spec,</div><div>           {{defaults,1},</div><div>            [{type,115,'fun',</div><div>                   [{type,115,product,[{type,115,agner_package_name,[]}]},</div><div>                    {type,115,agner_spec,[]}]}]}}</div></div><div><br></div>