Skip to content

Commit 2e5df40

Browse files
committed
Upgrade to purescript-node-streams 0.3.0
1 parent a4b0e74 commit 2e5df40

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"license": "MIT",
66
"dependencies": {
77
"purescript-functions": "~0.1.0",
8-
"purescript-node-streams": "~0.2.0",
8+
"purescript-node-streams": "~0.3.0",
99
"purescript-foreign": "~0.7.2",
1010
"purescript-maps": "~0.5.3",
1111
"purescript-nullable": "~0.2.1",

src/Node/ChildProcess.purs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ runChildProcess (ChildProcess r) = r
5757
-- | Note: some of these types are lies, and so it is unsafe to access some of
5858
-- | these record fields directly.
5959
type ChildProcessRec =
60-
{ stdin :: forall eff. Nullable (Writable () (cp :: CHILD_PROCESS | eff) Buffer)
61-
, stdout :: forall eff. Nullable (Readable () (cp :: CHILD_PROCESS | eff) Buffer)
62-
, stderr :: forall eff. Nullable (Readable () (cp :: CHILD_PROCESS | eff) Buffer)
60+
{ stdin :: forall eff. Nullable (Writable () (cp :: CHILD_PROCESS | eff))
61+
, stdout :: forall eff. Nullable (Readable () (cp :: CHILD_PROCESS | eff))
62+
, stderr :: forall eff. Nullable (Readable () (cp :: CHILD_PROCESS | eff))
6363
, pid :: Int
6464
, connected :: Boolean
6565
, kill :: Signal -> Boolean
@@ -69,17 +69,17 @@ type ChildProcessRec =
6969

7070
-- | The standard input stream of a child process. Note that this is only
7171
-- | available if the process was spawned with the stdin option set to "pipe".
72-
stdin :: forall eff. ChildProcess -> Writable () (cp :: CHILD_PROCESS | eff) Buffer
72+
stdin :: forall eff. ChildProcess -> Writable () (cp :: CHILD_PROCESS | eff)
7373
stdin = unsafeFromNullable (missingStream "stdin") <<< _.stdin <<< runChildProcess
7474

7575
-- | The standard output stream of a child process. Note that this is only
7676
-- | available if the process was spawned with the stdout option set to "pipe".
77-
stdout :: forall eff. ChildProcess -> Readable () (cp :: CHILD_PROCESS | eff) Buffer
77+
stdout :: forall eff. ChildProcess -> Readable () (cp :: CHILD_PROCESS | eff)
7878
stdout = unsafeFromNullable (missingStream "stdout") <<< _.stdout <<< runChildProcess
7979

8080
-- | The standard error stream of a child process. Note that this is only
8181
-- | available if the process was spawned with the stderr option set to "pipe".
82-
stderr :: forall eff. ChildProcess -> Readable () (cp :: CHILD_PROCESS| eff) Buffer
82+
stderr :: forall eff. ChildProcess -> Readable () (cp :: CHILD_PROCESS| eff)
8383
stderr = unsafeFromNullable (missingStream "stderr") <<< _.stderr <<< runChildProcess
8484

8585
missingStream :: String -> String
@@ -217,7 +217,7 @@ type ChildProcessError =
217217
data StdIOBehaviour
218218
= Pipe
219219
| Ignore
220-
| ShareStream (forall r eff a. Stream r eff a)
220+
| ShareStream (forall r eff. Stream r eff)
221221
| ShareFD FS.FileDescriptor
222222

223223
-- | Create pipes for each of the three standard IO streams.

0 commit comments

Comments
 (0)