Skip to content

Commit 06c5def

Browse files
committed
StdIO streams
1 parent e2227ee commit 06c5def

File tree

5 files changed

+37
-2
lines changed

5 files changed

+37
-2
lines changed

.jshintrc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"bitwise": true,
3+
"eqeqeq": true,
4+
"forin": true,
5+
"freeze": true,
6+
"funcscope": true,
7+
"futurehostile": true,
8+
"globalstrict": true,
9+
"latedef": true,
10+
"maxparams": 1,
11+
"noarg": true,
12+
"nocomma": true,
13+
"nonew": true,
14+
"notypeof": true,
15+
"singleGroups": true,
16+
"undef": true,
17+
"unused": true,
18+
"eqnull": true
19+
}
20+

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
"private": true,
33
"scripts": {
44
"postinstall": "pulp dep install",
5-
"build": "jshint src && jscs src && pulp build && rimraf docs && pulp docs"
5+
"build": "jshint src && pulp build && rimraf docs && pulp docs"
66
},
77
"devDependencies": {
8-
"jscs": "^1.13.1",
98
"jshint": "^2.8.0",
109
"pulp": "^4.0.2",
1110
"rimraf": "^2.4.1",

src/Node/Stream.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* global exports */
12
"use strict";
23

34
// module Node.Stream

src/Node/Stream/StdIO.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/* global exports */
2+
/* global process */
3+
"use strict";
4+
5+
// module Node.Stream.StdIO
6+
7+
8+
exports.stdin = process.stdin;
9+
exports.stdout = process.stdout;
10+
exports.stderr = process.stderr;

src/Node/Stream/StdIO.purs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
-- | The standard IO streams for the current process.
22
module Node.Stream.StdIO where
33

4+
import Prelude
5+
import Control.Monad.Eff.Console
6+
7+
import Node.Stream
8+
49
foreign import stdin :: forall eff. Readable () (console :: CONSOLE | eff)
510
foreign import stdout :: forall eff. Writable () (console :: CONSOLE | eff)
611
foreign import stderr :: forall eff. Writable () (console :: CONSOLE | eff)

0 commit comments

Comments
 (0)