diff --git a/.tidyrc.json b/.tidyrc.json new file mode 100644 index 0000000..9e39cf1 --- /dev/null +++ b/.tidyrc.json @@ -0,0 +1,10 @@ +{ + "importSort": "ide", + "importWrap": "source", + "indent": 2, + "operatorsFile": null, + "ribbon": 1, + "typeArrowPlacement": "first", + "unicode": "never", + "width": null +} diff --git a/CHANGELOG.md b/CHANGELOG.md index 4bf756d..8b4b748 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ Notable changes to this project are documented in this file. The format is based ## [Unreleased] Breaking changes: +- Migrated from `web-promise` to `js-promise` New features: diff --git a/bower.json b/bower.json index d153e59..4dfd5c8 100644 --- a/bower.json +++ b/bower.json @@ -18,9 +18,9 @@ "purescript-arraybuffer-types": "^3.0.2", "purescript-effect": "^4.0.0", "purescript-exceptions": "^6.0.0", + "purescript-js-promise": "https://github.com/purescript-contrib/purescript-js-promise.git#^1.0.0", "purescript-nullable": "^6.0.0", - "purescript-prelude": "^6.0.0", - "purescript-tuples": "^7.0.0", - "purescript-web-promise": "https://github.com/purescript-web/purescript-web-promise.git#^3.0.0" + "purescript-prelude": "^6.0.1", + "purescript-tuples": "^7.0.0" } } diff --git a/package.json b/package.json index 4ea39f9..b055e50 100644 --- a/package.json +++ b/package.json @@ -2,12 +2,15 @@ "private": true, "scripts": { "clean": "rimraf output && rimraf .pulp-cache", - "build": "eslint src && pulp build -- --censor-lib --strict" + "build": "eslint src && purs-tidy check --config-require src/**/*.purs && pulp build -- --censor-lib --strict" }, "devDependencies": { - "eslint": "^7.15.0", - "pulp": "16.0.0-0", + "eslint": "^8.28.0", + "pulp": "^16.0.2", "purescript-psa": "^0.8.2", "rimraf": "^3.0.2" + }, + "dependencies": { + "purs-tidy": "^0.9.2" } } diff --git a/src/Web/Streams/ReadableStream.purs b/src/Web/Streams/ReadableStream.purs index 58d8c8c..04bb968 100644 --- a/src/Web/Streams/ReadableStream.purs +++ b/src/Web/Streams/ReadableStream.purs @@ -13,7 +13,7 @@ import Data.Tuple (Tuple(..)) import Effect (Effect) import Effect.Uncurried (EffectFn2, runEffectFn2) import Prelude (Unit) -import Web.Promise (Promise) +import Promise (Promise) import Web.Streams.QueuingStrategy (QueuingStrategy) import Web.Streams.Reader (Reader) import Web.Streams.Source (Source) diff --git a/src/Web/Streams/Reader.purs b/src/Web/Streams/Reader.purs index 641529f..b453548 100644 --- a/src/Web/Streams/Reader.purs +++ b/src/Web/Streams/Reader.purs @@ -3,7 +3,7 @@ module Web.Streams.Reader where import Data.Maybe (Maybe(..)) import Effect (Effect) import Effect.Uncurried (EffectFn3, runEffectFn3) -import Web.Promise (Promise) +import Promise (Promise) foreign import data Reader :: Type -> Type diff --git a/src/Web/Streams/Source.purs b/src/Web/Streams/Source.purs index bedb744..5b12400 100644 --- a/src/Web/Streams/Source.purs +++ b/src/Web/Streams/Source.purs @@ -6,7 +6,7 @@ module Web.Streams.Source import Effect (Effect) import Prelude (Unit) import Prim.Row as Row -import Web.Promise (Promise) +import Promise (Promise) import Web.Streams.ReadableStreamController (ReadableStreamController) foreign import data Source :: Type -> Type