File tree Expand file tree Collapse file tree 11 files changed +26
-29
lines changed
Expand file tree Collapse file tree 11 files changed +26
-29
lines changed Original file line number Diff line number Diff line change 11language : node_js
22sudo : false
33node_js :
4- - 0.10
5- - 0.12
64 - 4.1
75env :
86 - PATH=$HOME/purescript:$PATH
@@ -11,6 +9,7 @@ install:
119 - wget -O $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz
1210 - tar -xvf $HOME/purescript.tar.gz -C $HOME/
1311 - chmod a+x $HOME/purescript
12+ - npm install -g bower
1413 - npm install
1514script :
1615 - npm run build
Original file line number Diff line number Diff line change 1313 "url" : " git://github.com/purescript-node/purescript-node-buffer"
1414 },
1515 "dependencies" : {
16- "purescript-eff" : " ~0.1 .0" ,
17- "purescript-maybe" : " ~0.3.1 "
16+ "purescript-eff" : " ^1.0 .0" ,
17+ "purescript-maybe" : " ^1.0.0 "
1818 },
1919 "devDependencies" : {
20- "purescript-assert" : " ~0.1.1 " ,
21- "purescript-console" : " ~0.1.1 " ,
22- "purescript-foldable-traversable" : " ~0.4.1 "
20+ "purescript-assert" : " ^1.0.0 " ,
21+ "purescript-console" : " ^1.0.0 " ,
22+ "purescript-foldable-traversable" : " ^1.0.0 "
2323 }
2424}
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ An instance of Node's Buffer class.
2727
2828##### Instances
2929``` purescript
30- instance showBuffer :: Show Buffer
30+ Show Buffer
3131```
3232
3333#### ` BUFFER `
@@ -62,7 +62,7 @@ Enumeration of the numeric types that can be written to a buffer.
6262
6363##### Instances
6464``` purescript
65- instance showBufferValueType :: Show BufferValueType
65+ Show BufferValueType
6666```
6767
6868#### ` create `
Original file line number Diff line number Diff line change 66slice :: Offset -> Offset -> Buffer -> Buffer
77```
88
9+ Creates a new buffer slice that acts like a window on the original buffer.
10+ Writing to the slice buffer updates the original buffer and vice-versa.
11+ This is considered unsafe as writing to a slice can result in action at a
12+ distance.
13+
914
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ data Encoding
1515
1616##### Instances
1717``` purescript
18- instance showEncoding :: Show Encoding
18+ Show Encoding
1919```
2020
2121#### ` byteLength `
Original file line number Diff line number Diff line change 11{
22 "private" : true ,
33 "devDependencies" : {
4- "pulp" : " ^4 .0.1 " ,
4+ "pulp" : " ^9 .0.0 " ,
55 "rimraf" : " ^2.4.1"
66 },
77 "scripts" : {
8- "postinstall" : " pulp dep install" ,
8+ "postinstall" : " bower install" ,
99 "build" : " pulp build && pulp test && rimraf docs && pulp docs"
1010 }
1111}
Original file line number Diff line number Diff line change 33/* global require */
44"use strict" ;
55
6- // module Node.Buffer
7-
86exports . showImpl = require ( 'util' ) . inspect ;
97
108exports . create = function ( size ) {
Original file line number Diff line number Diff line change @@ -23,9 +23,9 @@ module Node.Buffer
2323 ) where
2424
2525import Prelude
26- import Control.Monad.Eff
27- import Data.Maybe
28- import Node.Encoding
26+ import Control.Monad.Eff ( Eff )
27+ import Data.Maybe ( Maybe (..))
28+ import Node.Encoding ( Encoding )
2929
3030-- | Type synonym indicating the value should be an octet (0-255). If the value
3131-- | provided is outside this range it will be used as modulo 255.
Original file line number Diff line number Diff line change 22/* global Buffer */
33"use strict" ;
44
5- // module Node.Buffer.Unsafe
6-
75exports . slice = function ( start ) {
86 return function ( end ) {
97 return function ( buff ) {
Original file line number Diff line number Diff line change 22/* global Buffer */
33"use strict" ;
44
5- // module Node.Encoding
6-
75exports . byteLengthImpl = function ( str ) {
86 return function ( enc ) {
97 return Buffer . byteLength ( str , enc ) ;
You can’t perform that action at this time.
0 commit comments