Skip to content

Commit 7436a0c

Browse files
author
Michael Trotter
committed
Formatting
1 parent c4a2988 commit 7436a0c

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

src/React/Basic.purs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ instance monoidJSX :: Monoid JSX where
4444
data ComponentType props state action
4545

4646
type ComponentSpec props state initialState action =
47-
{ "$$type" :: ComponentType props state action
47+
{ "$$type" :: ComponentType props state action
4848
, initialState :: initialState
4949
, shouldUpdate :: LimitedSelf props state -> props -> state -> Boolean
50-
, didMount :: Self props state action -> Effect Unit
51-
, didUpdate :: Self props state action -> Effect Unit
52-
, willUnmount :: LimitedSelf props state -> Effect Unit
53-
, update :: Update props state action
54-
, render :: Self props state action -> JSX
50+
, didMount :: Self props state action -> Effect Unit
51+
, didUpdate :: Self props state action -> Effect Unit
52+
, willUnmount :: LimitedSelf props state -> Effect Unit
53+
, update :: Update props state action
54+
, render :: Self props state action -> JSX
5555
}
5656

5757
type Component = forall props state action. ComponentSpec props state Void action
@@ -63,16 +63,16 @@ type Update props state action
6363

6464
data StateUpdate props state action
6565
= NoUpdate
66-
| Update state
67-
| SideEffects (Self props state action -> Effect Unit)
66+
| Update state
67+
| SideEffects (Self props state action -> Effect Unit)
6868
| UpdateAndSideEffects state (Self props state action -> Effect Unit)
6969

7070
type Self props state action =
71-
{ props :: props
72-
, state :: state
71+
{ props :: props
72+
, state :: state
7373
, readProps :: Effect props
7474
, readState :: Effect state
75-
, send :: action -> Effect Unit
75+
, send :: action -> Effect Unit
7676

7777
-- | Unsafe, but still frequently better than rewriting a
7878
-- | whold component in JS
@@ -195,7 +195,7 @@ foreign import createComponent_
195195
. Fn3
196196
(StateUpdate props state action)
197197
(StateUpdate props state action
198-
-> { state :: Nullable state
198+
-> { state :: Nullable state
199199
, effects :: Nullable (Self props state action -> Effect Unit)
200200
})
201201
String

0 commit comments

Comments
 (0)