Advertisement
Guest User

Untitled

a guest
May 26th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. update : Msg -> Model -> (Model, Cmd Msg)
  2. update msg model =
  3. withLogic <| update' msg model
  4.  
  5.  
  6. update' : Msg -> Model -> (Model, Cmd Msg)
  7. update' msg model =
  8. case msg of
  9. LoginMsg msg ->
  10. LoginUpdate.update msg model
  11. |> sndMap LoginMsg
  12.  
  13.  
  14. withLogic : (Model, Cmd Msg) -> (Model, Cmd Msg)
  15. withLogic (model, cmd) =
  16. (model, cmd)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement