This page of the guide <http://guide.elm-lang.org/interop/html.html>
mentions a way of running an Elm program as a "worker," where there is no
UI. Would that work for you?(In that case I am guessing you could just
provide an empty view function.)

On Sat, Jul 23, 2016 at 3:20 PM, Jörg Winter <[email protected]> wrote:

> So I have this port module which lets me invoke elm-actions from JS and
> get back results into JS
> (Basically I just want to use this elm module like a library of elm
> functions, no Html rendering needed!)
>
> It seems I have to give it a main function and use Html.App.program, which
> in turn requires me to define a view function.
>
> Is there any way to expose ports to JS -without- defining a full blown
> main + view ?
> Just using Elm for implementing a library ?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Elm Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to