Skip to content

Commit 986665f

Browse files
committed
Fix return value of exit
1 parent 5210893 commit 986665f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/Node/Process.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ platform :: Platform
131131
#### `exit`
132132

133133
``` purescript
134-
exit :: forall eff. Int -> Eff (process :: PROCESS | eff) Unit
134+
exit :: forall eff a. Int -> Eff (process :: PROCESS | eff) a
135135
```
136136

137137
Cause the process to exit with the supplied integer code. An exit code

src/Node/Process.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ platform = fromJust (Platform.fromString process.platform)
115115
-- | Cause the process to exit with the supplied integer code. An exit code
116116
-- | of 0 is normally considered successful, and anything else is considered a
117117
-- | failure.
118-
foreign import exit :: forall eff. Int -> Eff (process :: PROCESS | eff) Unit
118+
foreign import exit :: forall eff a. Int -> Eff (process :: PROCESS | eff) a
119119

120120
-- | The standard input stream. Note that this stream will never emit an `end`
121121
-- | event, so any handlers attached via `onEnd` will never be called.

0 commit comments

Comments
 (0)