diff --git a/bower.json b/bower.json index d36fe83..60c7536 100644 --- a/bower.json +++ b/bower.json @@ -13,12 +13,12 @@ "url": "git://github.com/purescript-node/purescript-node-buffer" }, "dependencies": { - "purescript-eff": "^2.0.0", - "purescript-maybe": "^2.0.0" + "purescript-eff": "^3.0.0", + "purescript-maybe": "^3.0.0" }, "devDependencies": { - "purescript-assert": "^2.0.0", - "purescript-console": "^2.0.0", - "purescript-foldable-traversable": "^2.0.0" + "purescript-assert": "^3.0.0", + "purescript-console": "^3.0.0", + "purescript-foldable-traversable": "^3.0.0" } } diff --git a/package.json b/package.json index 913c2f7..fb92faf 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,14 @@ { + "name": "purescript-node-buffer", "private": true, "scripts": { "clean": "rimraf output && rimraf .pulp-cache", - "build": "pulp build --censor-lib --strict" + "build": "pulp build -- --censor-lib --strict" }, "devDependencies": { - "pulp": "^9.0.1", - "purescript-psa": "^0.3.9", - "purescript": "^0.10.1", - "rimraf": "^2.5.4" + "pulp": "^11.0.0", + "purescript-psa": "^0.5.0", + "purescript": "^0.11.1", + "rimraf": "^2.6.1" } } diff --git a/src/Node/Buffer.purs b/src/Node/Buffer.purs index e07bc23..0a5f7dd 100644 --- a/src/Node/Buffer.purs +++ b/src/Node/Buffer.purs @@ -23,7 +23,7 @@ module Node.Buffer ) where import Prelude -import Control.Monad.Eff (Eff) +import Control.Monad.Eff (Eff, kind Effect) import Data.Maybe (Maybe(..)) import Node.Encoding (Encoding, encodingToNode) @@ -35,7 +35,7 @@ type Octet = Int type Offset = Int -- | An instance of Node's Buffer class. -foreign import data Buffer :: * +foreign import data Buffer :: Type instance showBuffer :: Show Buffer where show = showImpl @@ -43,7 +43,7 @@ instance showBuffer :: Show Buffer where foreign import showImpl :: Buffer -> String -- | Effect for buffer creation, reading, or writing. -foreign import data BUFFER :: ! +foreign import data BUFFER :: Effect -- | Enumeration of the numeric types that can be written to a buffer. data BufferValueType diff --git a/test/Main.purs b/test/Main.purs index b569898..a3f6994 100644 --- a/test/Main.purs +++ b/test/Main.purs @@ -131,7 +131,7 @@ testGetAtOffset = do assertEq Nothing =<< getAtOffset 4 buf assertEq Nothing =<< getAtOffset (-1) buf -assertEq :: forall a. (Eq a, Show a) => a -> a -> Test +assertEq :: forall a. Eq a => Show a => a -> a -> Test assertEq x y = if x == y then pure unit