Re: [elm-discuss] Sending tagged unions through ports

2017-03-03 Thread Peter Damoc
On Fri, Mar 3, 2017 at 3:08 PM, Eirik Sletteberg wrote: > An example use case for this would be when gradually porting an existing > Redux-based app to Elm. > One could rewrite state handling from Redux into Elm updaters/messages, > and wrap the Elm app's main updater,

[elm-discuss] Sending tagged unions through ports

2017-03-03 Thread Eirik Sletteberg
An example use case for this would be when gradually porting an existing Redux-based app to Elm. One could rewrite state handling from Redux into Elm updaters/messages, and wrap the Elm app's main updater, so that after every message is passed through the updater, it sends the whole state tree