File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 236
236
:: String
237
237
-> ExecOptions
238
238
-> (ExecResult -> Effect Unit )
239
- -> Effect Unit
239
+ -> Effect ChildProcess
240
240
exec cmd opts callback =
241
241
execImpl cmd (convertExecOptions opts) \err stdout' stderr' ->
242
242
callback
@@ -249,7 +249,7 @@ foreign import execImpl
249
249
:: String
250
250
-> ActualExecOptions
251
251
-> (Nullable Exception.Error -> Buffer -> Buffer -> Effect Unit )
252
- -> Effect Unit
252
+ -> Effect ChildProcess
253
253
254
254
-- | Like `exec`, except instead of using a shell, it passes the arguments
255
255
-- | directly to the specified command.
@@ -258,7 +258,7 @@ execFile
258
258
-> Array String
259
259
-> ExecOptions
260
260
-> (ExecResult -> Effect Unit )
261
- -> Effect Unit
261
+ -> Effect ChildProcess
262
262
execFile cmd args opts callback =
263
263
execFileImpl cmd args (convertExecOptions opts) \err stdout' stderr' ->
264
264
callback
@@ -272,7 +272,7 @@ foreign import execFileImpl
272
272
-> Array String
273
273
-> ActualExecOptions
274
274
-> (Nullable Exception.Error -> Buffer -> Buffer -> Effect Unit )
275
- -> Effect Unit
275
+ -> Effect ChildProcess
276
276
277
277
foreign import data ActualExecOptions :: Type
278
278
Original file line number Diff line number Diff line change @@ -58,8 +58,10 @@ nonExistentExecutable done = do
58
58
59
59
execLs :: Effect Unit
60
60
execLs = do
61
- exec " ls >&2" defaultExecOptions \r ->
61
+ -- returned ChildProcess is ignored here
62
+ _ <- exec " ls >&2" defaultExecOptions \r ->
62
63
log " redirected to stderr:" *> (Buffer .toString UTF8 r.stderr >>= log)
64
+ pure unit
63
65
64
66
execSyncEcho :: String -> Effect Unit
65
67
execSyncEcho str = do
You can’t perform that action at this time.
0 commit comments