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 <[email protected]> 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, 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 <[email protected]>:
>>
>>> 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 [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.
>
--
There is NO FATE, we are the creators.
blog: http://damoc.ro/
--
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.