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
> ​
>
> 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 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 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 receiving emails from it, send 
 an email to elm-discuss...@googlegroups.com.
 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 elm-discuss...@googlegroups.com .
>> 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 elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

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