We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a938248 commit d8bef0cCopy full SHA for d8bef0c
example/Gzip.js
@@ -5,3 +5,5 @@
5
// module Gzip
6
7
exports.gzip = require('zlib').createGzip;
8
+exports.stdout = process.stdout;
9
+exports.stdin = process.stdin;
example/Gzip.purs
@@ -3,16 +3,15 @@ module Gzip where
3
import Prelude
4
import Node.Stream
-import Node.Stream.StdIO
import Control.Monad.Eff
import Control.Monad.Eff.Console
10
11
foreign import data GZIP :: !
12
13
foreign import gzip :: forall eff. Eff (gzip :: GZIP | eff) (Duplex (gzip :: GZIP | eff))
14
-
15
-foreign import
+foreign import stdin :: forall eff. Readable () (console :: CONSOLE | eff)
+foreign import stdout :: forall eff. Writable () (console :: CONSOLE | eff)
16
17
main = do
18
z <- gzip
0 commit comments