We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3f91c7 commit 0ae60cdCopy full SHA for 0ae60cd
1 file changed
src/Node/ChildProcess.purs
@@ -18,6 +18,7 @@ module Node.ChildProcess
18
, onMessage
19
, onError
20
, spawn
21
+ , fork
22
, SpawnOptions()
23
, defaultSpawnOptions
24
, StdIOBehaviour(..)
@@ -171,6 +172,11 @@ foreign import spawnImpl :: forall opts eff. String -> Array String -> { | opts
171
172
-- There's gotta be a better way.
173
foreign import undefined :: forall a. a
174
175
+-- | A special case of `spawn` for creating Node.js child processes. The first
176
+-- | argument is the module to be run, and the second is the argv (command line
177
+-- | arguments).
178
+foreign import fork :: forall eff. String -> Array String -> Eff (cp :: CHILD_PROCESS | eff) ChildProcess
179
+
180
defaultSpawnOptions :: SpawnOptions
181
defaultSpawnOptions =
182
{ cwd: Nothing
0 commit comments