File tree Expand file tree Collapse file tree 4 files changed +15
-14
lines changed Expand file tree Collapse file tree 4 files changed +15
-14
lines changed 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" : " ^2 .0.0" ,
17- "purescript-maybe" : " ^2 .0.0"
16+ "purescript-eff" : " ^3 .0.0" ,
17+ "purescript-maybe" : " ^3 .0.0"
1818 },
1919 "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"
2323 }
2424}
Original file line number Diff line number Diff line change 11{
2+ "name" : " purescript-node-buffer" ,
23 "private" : true ,
34 "scripts" : {
45 "clean" : " rimraf output && rimraf .pulp-cache" ,
5- "build" : " pulp build --censor-lib --strict"
6+ "build" : " pulp build -- -- censor-lib --strict"
67 },
78 "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 "
1213 }
1314}
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ module Node.Buffer
2323 ) where
2424
2525import Prelude
26- import Control.Monad.Eff (Eff )
26+ import Control.Monad.Eff (Eff , kind Effect )
2727import Data.Maybe (Maybe (..))
2828import Node.Encoding (Encoding , encodingToNode )
2929
@@ -35,15 +35,15 @@ type Octet = Int
3535type Offset = Int
3636
3737-- | An instance of Node's Buffer class.
38- foreign import data Buffer :: *
38+ foreign import data Buffer :: Type
3939
4040instance showBuffer :: Show Buffer where
4141 show = showImpl
4242
4343foreign import showImpl :: Buffer -> String
4444
4545-- | Effect for buffer creation, reading, or writing.
46- foreign import data BUFFER :: !
46+ foreign import data BUFFER :: Effect
4747
4848-- | Enumeration of the numeric types that can be written to a buffer.
4949data BufferValueType
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ testGetAtOffset = do
131131 assertEq Nothing =<< getAtOffset 4 buf
132132 assertEq Nothing =<< getAtOffset (-1 ) buf
133133
134- assertEq :: forall a . ( Eq a , Show a ) => a -> a -> Test
134+ assertEq :: forall a . Eq a => Show a => a -> a -> Test
135135assertEq x y =
136136 if x == y
137137 then pure unit
You can’t perform that action at this time.
0 commit comments