You are right, it wouldn't work as I've thought. Native done right is OK,
but the problem is someone has to "approve" the project or it won't be
available to others by Elm package. I wonder if it's actually doable.

07.05.2017 12:43 AM "Kasey Speakman" <[email protected]> napisaƂ(a):

> Err, I should say I made a trade toward ease at the potential cost of
> safety by doing native instead of ports. I might make a different choice if
> the JS code were more complicated.
>
> On Saturday, May 6, 2017 at 5:26:39 PM UTC-5, Kasey Speakman wrote:
>>
>> I believe you can use ports without native code to pass the event
>> reference as Value to JS and call the FileReader API, returning file as
>> String back to Elm. But that was more convoluted than I wanted to deal with.
>>
> --
> 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