elm-spa-example icon indicating copy to clipboard operation
elm-spa-example copied to clipboard

Get rid of the catch-all case in the update function

Open norpan opened this issue 8 years ago • 0 comments

The catch-all case at the bottom makes adding new messages not fail compilation. One way to fix this is to add a catch-all for each page message instead, like this:

       ( SettingsMsg subMsg, _ ) ->
            model => Cmd.none

norpan avatar Jul 15 '17 20:07 norpan