Skip to content

Commit

Permalink
docs(examples): update examples to new Update function
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurxavierx committed Sep 14, 2016
1 parent aea8112 commit 71adfb6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/Counter/Counter.purs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ counterClass :: ReactClass _
counterClass = createClass $ spec 0 update render

update :: forall props eff. Update State props Action (console :: CONSOLE | eff)
update yield action _ _ =
update yield _ action _ _ =
case action of
Init -> do
liftEff $ log "Initializing"
Expand Down
2 changes: 1 addition & 1 deletion examples/CounterList/Counter.purs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ counterClass :: CedarClass Counter CounterAction
counterClass = createClass $ cedarSpec update render

update :: forall props eff. Update Counter props CounterAction eff
update yield action _ _ =
update yield _ action _ _ =
case action of
Increment ->
yield (_ + 1)
Expand Down
2 changes: 1 addition & 1 deletion examples/CounterList/CounterList.purs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ counterListClass :: ReactClass _
counterListClass = createClass $ spec [0] update render

update :: forall props eff. Update CounterList props CounterListAction eff
update yield action _ _ =
update yield _ action _ _ =
case action of
Add ->
yield \state -> snoc state 0
Expand Down
2 changes: 1 addition & 1 deletion examples/CounterList/Maybe/Counter.purs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ counter :: CedarClass Counter CounterAction
counter = createClass $ cedarSpec update render

update :: forall props eff. Update Counter props CounterAction eff
update yield action _ _ =
update yield _ action _ _ =
case action of
Increment ->
yield $ map (_ + 1)
Expand Down
2 changes: 1 addition & 1 deletion examples/CounterList/Maybe/CounterList.purs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ counterListClass :: ReactClass _
counterListClass = createClass $ spec [Just 0] update render

update :: forall props eff. Update CounterList props CounterListAction eff
update yield action _ _ =
update yield _ action _ _ =
case action of
Add ->
yield \state -> snoc state (Just 0)
Expand Down

0 comments on commit 71adfb6

Please sign in to comment.