Re: [elm-discuss] More than one argument in the receive port call?

2016-10-03 Thread Janis Voigtländer
2016-10-04 2:22 GMT+02:00 Wil C :

> It says to visit http://guide.elm-lang.org/effect_managers/
>

In the next release of the compiler it will correctly tell you to visit
https://guide.elm-lang.org/interop/javascript.html instead.

-- 
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.


[elm-discuss] More than one argument in the receive port call?

2016-10-03 Thread Wil C
 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:





-- 
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.