[erlang-questions] include as a library rather than an application?

Thomas Lindgren thomasl_erlang@REDACTED
Sun Apr 6 12:31:05 CEST 2014


If it's just a code library, you don't need the module. Take a look at the 'mod' key in the 'app' man page: http://www.erlang.org/doc/man/app.html


Best,
Thomas

On Sunday, April 6, 2014 6:20 AM, t x <txrev319@REDACTED> wrote:
 
Hi,
>
>For this problem has a "working hack" -- but I'd prefer to do it without a hack.
>
>I'm including erldn in my app.src as:
>
>{applications, [kernel, stdlib, cowboy, gproc, erldn]},
>
>
>To do this, erldn must have an application behaviour. Thus, I was forced to add:
>
>https://github.com/txrev319/erldn/blob/d607db5d3826a7f3ad0eff918c8c7691a362ad94/src/erldn_app.erl
>
>
>a no-op file to make it an application.
>
>
>My question: is there a way to include erldn as a library rather than
>an application? I.e. I want access to erldn:parse_str(...) . However,
>I don't want to spawn an app just to include erldn.
>
>
>Thanks!
>_______________________________________________
>erlang-questions mailing list
>erlang-questions@REDACTED
>http://erlang.org/mailman/listinfo/erlang-questions
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140406/7c6fa142/attachment.htm>


More information about the erlang-questions mailing list