File tree 4 files changed +15
-14
lines changed
4 files changed +15
-14
lines changed Original file line number Diff line number Diff line change 13
13
"url" : " git://github.com/purescript-node/purescript-node-buffer"
14
14
},
15
15
"dependencies" : {
16
- "purescript-eff" : " ^2 .0.0" ,
17
- "purescript-maybe" : " ^2 .0.0"
16
+ "purescript-eff" : " ^3 .0.0" ,
17
+ "purescript-maybe" : " ^3 .0.0"
18
18
},
19
19
"devDependencies" : {
20
- "purescript-assert" : " ^2 .0.0" ,
21
- "purescript-console" : " ^2 .0.0" ,
22
- "purescript-foldable-traversable" : " ^2 .0.0"
20
+ "purescript-assert" : " ^3 .0.0" ,
21
+ "purescript-console" : " ^3 .0.0" ,
22
+ "purescript-foldable-traversable" : " ^3 .0.0"
23
23
}
24
24
}
Original file line number Diff line number Diff line change 1
1
{
2
+ "name" : " purescript-node-buffer" ,
2
3
"private" : true ,
3
4
"scripts" : {
4
5
"clean" : " rimraf output && rimraf .pulp-cache" ,
5
- "build" : " pulp build --censor-lib --strict"
6
+ "build" : " pulp build -- -- censor-lib --strict"
6
7
},
7
8
"devDependencies" : {
8
- "pulp" : " ^9 .0.1 " ,
9
- "purescript-psa" : " ^0.3.9 " ,
10
- "purescript" : " ^0.10 .1" ,
11
- "rimraf" : " ^2.5.4 "
9
+ "pulp" : " ^11 .0.0 " ,
10
+ "purescript-psa" : " ^0.5.0 " ,
11
+ "purescript" : " ^0.11 .1" ,
12
+ "rimraf" : " ^2.6.1 "
12
13
}
13
14
}
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ module Node.Buffer
23
23
) where
24
24
25
25
import Prelude
26
- import Control.Monad.Eff (Eff )
26
+ import Control.Monad.Eff (Eff , kind Effect )
27
27
import Data.Maybe (Maybe (..))
28
28
import Node.Encoding (Encoding , encodingToNode )
29
29
@@ -35,15 +35,15 @@ type Octet = Int
35
35
type Offset = Int
36
36
37
37
-- | An instance of Node's Buffer class.
38
- foreign import data Buffer :: *
38
+ foreign import data Buffer :: Type
39
39
40
40
instance showBuffer :: Show Buffer where
41
41
show = showImpl
42
42
43
43
foreign import showImpl :: Buffer -> String
44
44
45
45
-- | Effect for buffer creation, reading, or writing.
46
- foreign import data BUFFER :: !
46
+ foreign import data BUFFER :: Effect
47
47
48
48
-- | Enumeration of the numeric types that can be written to a buffer.
49
49
data BufferValueType
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ testGetAtOffset = do
131
131
assertEq Nothing =<< getAtOffset 4 buf
132
132
assertEq Nothing =<< getAtOffset (-1 ) buf
133
133
134
- assertEq :: forall a . ( Eq a , Show a ) => a -> a -> Test
134
+ assertEq :: forall a . Eq a => Show a => a -> a -> Test
135
135
assertEq x y =
136
136
if x == y
137
137
then pure unit
You can’t perform that action at this time.
0 commit comments