So you really are wanting to hard device events into two different ones, those that can *only* alter the model, and those that can *only* send commands (which may call ones that alter the model). Unsure if it might actually happen but might have to take into account possible race conditions for if other messages appear before your other expected ones are processed through? Easier to do that atomically all at once?
On Thursday, August 11, 2016 at 2:25:22 PM UTC-6, Kasey Speakman wrote: > > doSideEffects above would also have to map Cmd Evt to Cmd Msg. > -- 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.
