diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 063845e..2e4c7a1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,6 +13,8 @@ jobs: - uses: actions/checkout@v2 - uses: purescript-contrib/setup-purescript@main + with: + purescript: "0.14.0-rc3" - uses: actions/setup-node@v1 with: diff --git a/bower.json b/bower.json index 9aacdc1..dc8bf05 100644 --- a/bower.json +++ b/bower.json @@ -12,19 +12,19 @@ "output" ], "dependencies": { - "purescript-effect": ">= 1.0.0 < 3", - "purescript-either": ">= 1.0.0 < 5", - "purescript-exceptions": ">= 4.0.0 < 5", - "purescript-foreign": ">= 5.0.0 < 6", - "purescript-maybe": ">= 1.0.0 < 5", - "purescript-node-buffer": ">= 5.0.0 < 6", - "purescript-node-fs": ">= 5.0.0 < 6", - "purescript-nullable": ">= 3.0.0 < 5", - "purescript-options": ">= 1.0.0 < 6", - "purescript-prelude": ">= 4.0.0 < 5", - "purescript-transformers": ">= 1.0.0 < 5" + "purescript-effect": "master", + "purescript-either": "master", + "purescript-exceptions": "master", + "purescript-foreign": "master", + "purescript-maybe": "master", + "purescript-node-buffer": "master", + "purescript-node-fs": "master", + "purescript-nullable": "main", + "purescript-options": "main", + "purescript-prelude": "master", + "purescript-transformers": "master" }, "devDependencies": { - "purescript-console": ">= 4.0.0 < 5" + "purescript-console": "master" } } diff --git a/package.json b/package.json index fd4391e..63f9f51 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "scripts": { "clean": "rimraf output && rimraf .pulp-cache", "build": "eslint src && pulp build -- --censor-lib --strict", - "test": "pulp test" + "test": "pulp test -- --censor-lib" }, "devDependencies": { "eslint": "^7.15.0", diff --git a/test/Test/Main.purs b/test/Test/Main.purs index d7714c9..53e9c6f 100644 --- a/test/Test/Main.purs +++ b/test/Test/Main.purs @@ -44,9 +44,10 @@ main = do infoShow {_message: "Socket connected"} Node.Net.Socket.onData socket case _ of Left buffer -> do - logShow { _message: "Received some data", buffer } + bufferBinary <- toString Binary buffer + logShow { _message: "Received some data", bufferBinary } bufferString <- toString UTF8 buffer - logShow { _message: "Converted to a `String`", buffer, bufferString } + logShow { _message: "Converted to a `String`", bufferString } Right string -> logShow { _message: "Received some data", string } Node.Net.Socket.onDrain socket do infoShow { _message: "Socket drained" }