[erlang-questions] how: Getting -export_type information at run time?

Michael Truog <>
Fri Apr 10 08:38:11 CEST 2015


Use the parse transform at https://gist.github.com/okeuday/76724b20dca62c27420f and use the very_nice:$abstract_code$() function it adds to access the abstract code as data.


On 04/09/2015 11:23 PM, Bengt Kleberg wrote:
> Greetings,
>
> How do I find type information at run time?
>
> A very nice Erlang module takes an options list. The options are -type defined and -export_type'ed.
> How do another module get that information during run time?
>
> I thought that it might be in very_nice:module_info(attributes), but no luck.
>
>
> bengt
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list