Skip to content

Commit

Permalink
Migrate to js-promise (#10)
Browse files Browse the repository at this point in the history
* Update dependencies, migrate to `js-promise`

* Add `purs-tidy`

* Update CHANGELOG.md

* Add tidy config
  • Loading branch information
garyb authored Aug 4, 2023
1 parent d73ca8f commit b89cd26
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 9 deletions.
10 changes: 10 additions & 0 deletions .tidyrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"importSort": "ide",
"importWrap": "source",
"indent": 2,
"operatorsFile": null,
"ribbon": 1,
"typeArrowPlacement": "first",
"unicode": "never",
"width": null
}
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
6 changes: 3 additions & 3 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion src/Web/Streams/ReadableStream.purs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/Web/Streams/Reader.purs
Original file line number Diff line number Diff line change
Expand Up @@ -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

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

0 comments on commit b89cd26

Please sign in to comment.