I'm not from 0.16, but here is how I send a message to myself, I have this 
in a Helpers module:
```elm
cmd_from_msg : msg -> Cmd msg
cmd_from_msg msg =
    Task.perform (\_ -> Debug.crash "This cannot fail") identity 
(Task.succeed msg)
```
Which would turn your code into this if I understand what you are trying to 
do:
```
(
  model''
, Cmd.batch
    [ cmd_from_msg FadeOutOldPage 
    , cmd_from_msg FadeInNewPage 
    , cmd_from_msg (UpdateInfoBox (InfoBox.UpdateData storyLevel 
inventoryQuantities storyPhaseChapter))
    ]
 )
```


On Thursday, September 15, 2016 at 12:30:59 PM UTC-6, Rex van der Spuy 
wrote:
>
> Hi Everyone!
>
> I'm upgrading some complex old 0.16 code to 0.17 and came across this in 
> my `update` function:
>
> ```
> (
>   model''
> , Effects.batch
>     [ Effects.task <| Task.succeed FadeOutOldPage 
>     , Effects.task <| Task.succeed FadeInNewPage 
>     , Effects.task 
>         <| Task.succeed (UpdateInfoBox (InfoBox.UpdateData storyLevel 
> inventoryQuantities storyPhaseChapter))
>     ]
>  )
>
> ```
> Does anyone know what this should look like in 0.17?
>

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

Reply via email to