Re: [elm-discuss] Making new Cmds

2016-05-25 Thread Peter Damoc
Neah, keep doing that. You'll make mistakes but this is how we all learn. For example, my suggestion was broken because I forgot to put the `identity` as the second parameter :) I make tons of mistakes but I also learn a lot. On Wed, May 25, 2016 at 10:37 AM, Wil C wrote: > That worked, thank

Re: [elm-discuss] Making new Cmds

2016-05-25 Thread Wil C
That worked, thanks. I guess I should hold off telling people stuff. Wil On Wednesday, May 25, 2016 at 12:00:48 AM UTC-7, Janis Voigtländer wrote: > > Task.perform never identity (Task.succeed NewMsg) > > with never from > http://package.elm-lang.org/packages/elm-community/basics-extra > ​ > > 2

Re: [elm-discuss] Making new Cmds

2016-05-25 Thread Janis Voigtländer
Task.perform never identity (Task.succeed NewMsg) with never from http://package.elm-lang.org/packages/elm-community/basics-extra ​ 2016-05-25 8:53 GMT+02:00 Wil C : > It turns out it doesn't. What's the correct way to do this? > > Wil > > On Tuesday, May 24, 2016 at 10:48:33 AM UTC-7, Janis Voi

Re: [elm-discuss] Making new Cmds

2016-05-24 Thread Peter Damoc
succeed : Msg -> Cmd Msg succeed msg = Task.perform never (Task.succeed msg) with `never` from elm-community/basics-extra On Wed, May 25, 2016 at 9:53 AM, Wil C wrote: > It turns out it doesn't. What's the correct way to do this? > > Wil > > On Tuesday, May 24, 2016 at 10:48:33 AM UTC-7

Re: [elm-discuss] Making new Cmds

2016-05-24 Thread Wil C
It turns out it doesn't. What's the correct way to do this? Wil On Tuesday, May 24, 2016 at 10:48:33 AM UTC-7, Janis Voigtländer wrote: > > This is not doing what you almost certainly think it does. > ​ > > 2016-05-24 18:44 GMT+02:00 Wil C >: > >> It's just an aside, in case someone searches for

Re: [elm-discuss] Making new Cmds

2016-05-24 Thread Janis Voigtländer
This is not doing what you almost certainly think it does. ​ 2016-05-24 18:44 GMT+02:00 Wil C : > It's just an aside, in case someone searches for it. Here's how to make > new commands: > > Cmd.map (\_ -> NewMsg) Cmd.none > > It wasn't obvious to me. > > Wil > > -- > You received this message bec

[elm-discuss] Making new Cmds

2016-05-24 Thread Wil C
It's just an aside, in case someone searches for it. Here's how to make new commands: Cmd.map (\_ -> NewMsg) Cmd.none It wasn't obvious to me. Wil -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receivi