Everything from Html.Events will be imported. Besides the two functions that you expose, you can call any of the other functions by prefixing them with the module name. For example, Html.Events.onInput.
The compiler will include the entire module definition in the output JavaScript, even functions you never call. That can turn out to be a lot of dead code. On Wed, Sep 14, 2016 at 2:55 PM, Dave Thomas <[email protected]> wrote: > Does Elm only include the parts you use in import statements or does the > whole lot get included? > > e.g. If I do: > > import Html.Events exposing (onClick, onWithOptions) > > > Are only those parts included, or the whole shebang? > > -- > 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.
