Hi all,

How do you pass back more than one argument in a receive port call? It says 
to visit http://guide.elm-lang.org/effect_managers/, but there's nothing 
there on the topic. I tried something like this:

Port `parseFailure` has an invalid type.


10| port parseFailure : (String -> Int -> msg) -> Sub msg

    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

You are saying it should be:


    (String -> Int -> msg) -> Platform.Sub.Sub msg


But you need to use the particular format described here:

<http://guide.elm-lang.org/effect_managers/>



-- 
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 elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to