Skip to content

Commit 0380430

Browse files
committed
Add EXCEPTION to stdout and stderr
calling `end` will make them throw
1 parent e5c5b0d commit 0380430

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Node/Process.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,12 @@ stdin = process.stdin
118118

119119
-- | The standard output stream. Note that this stream cannot be closed; calling
120120
-- | `end` will result in an exception being thrown.
121-
stdout :: forall eff. Writable () (console :: CONSOLE | eff)
121+
stdout :: forall eff. Writable () (console :: CONSOLE, err :: EXCEPTION | eff)
122122
stdout = process.stdout
123123

124124
-- | The standard error stream. Note that this stream cannot be closed; calling
125125
-- | `end` will result in an exception being thrown.
126-
stderr :: forall eff. Writable () (console :: CONSOLE | eff)
126+
stderr :: forall eff. Writable () (console :: CONSOLE, err :: EXCEPTION | eff)
127127
stderr = process.stderr
128128

129129
-- | Check whether the process is being run inside a TTY context

0 commit comments

Comments
 (0)