Skip to content

Commit

Permalink
Merge pull request #26 from purescript-node/compiler/0.12
Browse files Browse the repository at this point in the history
Compiler/0.12
  • Loading branch information
garyb authored May 27, 2018
2 parents 4fe6dcf + b45cf84 commit bebf20b
Show file tree
Hide file tree
Showing 5 changed files with 143 additions and 181 deletions.
16 changes: 8 additions & 8 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
"url": "git://github.com/purescript-node/purescript-node-streams.git"
},
"devDependencies": {
"purescript-console": "^3.0.0",
"purescript-assert": "^3.0.0",
"purescript-partial": "^1.2.0"
"purescript-console": "^4.1.0",
"purescript-assert": "^4.0.0",
"purescript-partial": "^2.0.0"
},
"dependencies": {
"purescript-eff": "^3.0.0",
"purescript-node-buffer": "^3.0.0",
"purescript-prelude": "^3.0.0",
"purescript-either": "^3.0.0",
"purescript-exceptions": "^3.0.0"
"purescript-effect": "^2.0.0",
"purescript-node-buffer": "^5.0.0",
"purescript-prelude": "^4.0.0",
"purescript-either": "^4.0.0",
"purescript-exceptions": "^4.0.0"
}
}
14 changes: 6 additions & 8 deletions example/Gzip.purs
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,15 @@ module Gzip where

import Prelude

import Node.Stream
import Effect (Effect)
import Node.Stream (Duplex, Readable, Writable, pipe)

import Control.Monad.Eff
import Control.Monad.Eff.Console

foreign import data GZIP :: Effect

foreign import gzip :: forall eff. Eff (gzip :: GZIP | eff) (Duplex (gzip :: GZIP | eff))
foreign import stdin :: forall eff. Readable () (console :: CONSOLE | eff)
foreign import stdout :: forall eff. Writable () (console :: CONSOLE | eff)
foreign import gzip :: Effect Duplex
foreign import stdin :: Readable ()
foreign import stdout :: Writable ()

main :: Effect (Writable ())
main = do
z <- gzip
_ <- stdin `pipe` z
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
},
"devDependencies": {
"jscs": "^3.0.7",
"jshint": "^2.9.4",
"pulp": "^11.0.0",
"purescript-psa": "^0.5.0",
"rimraf": "^2.6.1",
"stream-buffers": "^3.0.1"
"jshint": "^2.9.5",
"pulp": "^12.2.0",
"purescript-psa": "^0.6.0",
"rimraf": "^2.6.2",
"stream-buffers": "^3.0.2"
}
}
Loading

0 comments on commit bebf20b

Please sign in to comment.