Skip to content

Commit f33ecc8

Browse files
authored
Migrate to js-promise (#13)
* Bump dependencies, migrate to `js-promise` * Add `purs-tidy` * Update CHANGELOG.md * Add tidy config
1 parent 22ea3ad commit f33ecc8

File tree

5 files changed

+19
-7
lines changed

5 files changed

+19
-7
lines changed

.tidyrc.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"importSort": "ide",
3+
"importWrap": "source",
4+
"indent": 2,
5+
"operatorsFile": null,
6+
"ribbon": 1,
7+
"typeArrowPlacement": "first",
8+
"unicode": "never",
9+
"width": null
10+
}

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Notable changes to this project are documented in this file. The format is based
55
## [Unreleased]
66

77
Breaking changes:
8+
- Migrated from `web-promise` to `js-promise`
89

910
New features:
1011

bower.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"package.json"
1616
],
1717
"dependencies": {
18-
"purescript-web-html": "^4.0.0",
19-
"purescript-web-promise": "purescript-web/purescript-web-promise#^3.0.0"
18+
"purescript-js-promise": "purescript-contrib/purescript-js-promise#^1.0.0",
19+
"purescript-web-html": "^4.1.0"
2020
}
2121
}

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
"private": true,
33
"scripts": {
44
"clean": "rimraf output && rimraf .pulp-cache",
5-
"build": "eslint src && pulp build -- --censor-lib --strict"
5+
"build": "eslint src && purs-tidy check --config-require src/**/*.purs && pulp build -- --censor-lib --strict"
66
},
77
"devDependencies": {
8-
"eslint": "^7.15.0",
9-
"pulp": "16.0.0-0",
8+
"eslint": "^8.28.0",
9+
"pulp": "^16.0.2",
1010
"purescript-psa": "^0.8.2",
11-
"rimraf": "^2.6.2"
11+
"purs-tidy": "^0.9.2",
12+
"rimraf": "^3.0.2"
1213
}
1314
}

src/Web/Clipboard/Clipboard.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import Prelude
44

55
import Data.Maybe (Maybe)
66
import Effect (Effect)
7+
import Promise (Promise)
78
import Unsafe.Coerce (unsafeCoerce)
89
import Web.Event.Internal.Types (EventTarget)
910
import Web.HTML (Navigator)
1011
import Web.Internal.FFI (unsafeReadProtoTagged)
11-
import Web.Promise (Promise)
1212

1313
foreign import clipboard :: Navigator -> Effect Clipboard
1414

0 commit comments

Comments
 (0)