Skip to content
This repository has been archived by the owner on Mar 8, 2018. It is now read-only.

Commit

Permalink
update usage in README
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Westby committed Jul 24, 2016
1 parent 2947f13 commit e76e381
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,9 @@ subscriptions _ =
port modelOut : Model -> Cmd msg


wrapUpdate : (Msg -> Model -> Model) -> (Msg -> Model -> (Model, Cmd Msg))
wrapUpdate innerUpdate =
\msg model ->
let
nextModel =
innerUpdate msg model
in
(nextModel, modelOut nextModel)


main : Program Never
main =
Worker.worker
Worker.worker modelOut
{ model = model
, update = wrapUpdate update
, subscriptions = subscriptions
Expand Down

0 comments on commit e76e381

Please sign in to comment.