Skip to content

v0.11.x #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 4, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
6 changes: 3 additions & 3 deletions src/Node/Buffer.purs
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -35,15 +35,15 @@ 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

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
Expand Down
2 changes: 1 addition & 1 deletion test/Main.purs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down