Skip to content

Commit 218a672

Browse files
committed
Removing empty spaces
1 parent 26df915 commit 218a672

File tree

4 files changed

+37
-37
lines changed

4 files changed

+37
-37
lines changed

src/React.purs

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
11
-- | This module defines foreign types and functions which wrap React's functionality.
22

3-
module React
3+
module React
44
( UI()
55
, UIRef()
6-
6+
77
, EventHandler()
8-
8+
99
, Disallowed()
1010
, Read()
1111
, Write()
1212
, Only()
1313
, ReadWrite()
1414
, ReadOnly()
15-
15+
1616
, ReactState()
1717
, ReactProps()
1818
, ReactRefs()
19-
19+
2020
, Refs()
21-
21+
2222
, Render()
23-
23+
2424
, UISpec()
25-
25+
2626
, Event()
2727
, MouseEvent()
2828
, KeyboardEvent()
29-
29+
3030
, EventHandlerContext()
31-
31+
3232
, spec
33-
33+
3434
, getProps
3535
, getRefs
36-
36+
3737
, readState
3838
, writeState
3939
, transformState
40-
40+
4141
, mkUI
42-
42+
4343
, handle
44-
44+
4545
, renderToString
4646
, renderToBody
4747
, renderToElementById
@@ -103,13 +103,13 @@ foreign import data Refs :: *
103103
foreign import data Event :: *
104104

105105
-- | The type of mouse events.
106-
type MouseEvent =
106+
type MouseEvent =
107107
{ pageX :: Number
108-
, pageY :: Number
108+
, pageY :: Number
109109
}
110110

111111
-- | The type of keyboard events.
112-
type KeyboardEvent =
112+
type KeyboardEvent =
113113
{ altKey :: Boolean
114114
, ctrlKey :: Boolean
115115
, charCode :: Int
@@ -124,7 +124,7 @@ type KeyboardEvent =
124124
}
125125

126126
-- | A function which handles events.
127-
type EventHandlerContext eff props state result =
127+
type EventHandlerContext eff props state result =
128128
Eff ( props :: ReactProps props
129129
, refs :: ReactRefs ReadOnly
130130
, state :: ReactState ReadWrite state
@@ -216,30 +216,30 @@ spec st render =
216216
}
217217

218218
-- | Read the component props.
219-
foreign import getProps :: forall props eff.
220-
UIRef ->
219+
foreign import getProps :: forall props eff.
220+
UIRef ->
221221
Eff (props :: ReactProps props | eff) props
222222

223223
-- | Read the component refs.
224224
foreign import getRefs :: forall write eff.
225-
UIRef ->
225+
UIRef ->
226226
Eff (refs :: ReactRefs (Read write) | eff) Refs
227227

228228
-- | Write the component state.
229-
foreign import writeState :: forall state eff.
230-
UIRef ->
231-
state ->
229+
foreign import writeState :: forall state eff.
230+
UIRef ->
231+
state ->
232232
Eff (state :: ReactState ReadWrite state | eff) state
233233

234234
-- | Read the component state.
235-
foreign import readState :: forall state write eff.
235+
foreign import readState :: forall state write eff.
236236
UIRef ->
237237
Eff (state :: ReactState (Read write) state | eff) state
238238

239239
-- | Transform the component state by applying a function.
240-
transformState :: forall state statePerms eff.
240+
transformState :: forall state statePerms eff.
241241
UIRef ->
242-
(state -> state) ->
242+
(state -> state) ->
243243
Eff (state :: ReactState ReadWrite state | eff) state
244244
transformState ctx f = do
245245
state <- readState ctx
@@ -248,7 +248,7 @@ transformState ctx f = do
248248
-- | Create a component from a component spec.
249249
foreign import mkUI :: forall props state eff.
250250
UISpec props state eff ->
251-
props ->
251+
props ->
252252
UI
253253

254254
-- | Create an event handler.

src/React/DOM.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55

66
function mkProps(props) {
77
var result = {};
8-
8+
99
for (var i = 0, len = props.length; i < len; i++) {
1010
var prop = props[i];
11-
11+
1212
for (var key in prop) {
1313
if (prop.hasOwnProperty(key)) {
1414
result[key] = prop[key];
1515
}
1616
}
1717
}
18-
18+
1919
return result;
2020
};
2121

src/React/DOM/Props.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ foreign import data Props :: *
99
foreign import unsafeMkProps :: forall val. String -> val -> Props
1010

1111
foreign import unsafeUnfoldProps :: forall vals. String -> { | vals } -> Props
12-
12+
1313
aria :: forall ariaAttrs. { | ariaAttrs } -> Props
1414
aria = unsafeUnfoldProps "aria"
1515

@@ -422,4 +422,4 @@ onScroll :: forall eff props state result. (Event -> EventHandlerContext eff pro
422422
onScroll f = unsafeMkProps "onScroll" (handle f)
423423

424424
onWheel :: forall eff props state result. (Event -> EventHandlerContext eff props state result) -> Props
425-
onWheel f = unsafeMkProps "onWheel" (handle f)
425+
onWheel f = unsafeMkProps "onWheel" (handle f)

src/React/DOM/SVG.purs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
module React.DOM.SVG where
2-
2+
33
import React
44
import React.DOM (mkDOM)
55
import React.DOM.Props (Props())
6-
6+
77
circle :: Array Props -> Array UI -> UI
88
circle = mkDOM "circle"
99

@@ -56,4 +56,4 @@ text :: Array Props -> Array UI -> UI
5656
text = mkDOM "text"
5757

5858
tspan :: Array Props -> Array UI -> UI
59-
tspan = mkDOM "tspan"
59+
tspan = mkDOM "tspan"

0 commit comments

Comments
 (0)