Skip to content

Commit d8bef0c

Browse files
committed
Fix Gzip example
1 parent a938248 commit d8bef0c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

example/Gzip.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@
55
// module Gzip
66

77
exports.gzip = require('zlib').createGzip;
8+
exports.stdout = process.stdout;
9+
exports.stdin = process.stdin;

example/Gzip.purs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@ module Gzip where
33
import Prelude
44

55
import Node.Stream
6-
import Node.Stream.StdIO
76

87
import Control.Monad.Eff
98
import Control.Monad.Eff.Console
109

1110
foreign import data GZIP :: !
1211

1312
foreign import gzip :: forall eff. Eff (gzip :: GZIP | eff) (Duplex (gzip :: GZIP | eff))
14-
15-
foreign import
13+
foreign import stdin :: forall eff. Readable () (console :: CONSOLE | eff)
14+
foreign import stdout :: forall eff. Writable () (console :: CONSOLE | eff)
1615

1716
main = do
1817
z <- gzip

0 commit comments

Comments
 (0)