Skip to content
This repository was archived by the owner on Jun 5, 2022. It is now read-only.

Commit 99797b6

Browse files
committed
Update build, remainder operator alias
1 parent 7ebeae0 commit 99797b6

File tree

4 files changed

+12
-14
lines changed

4 files changed

+12
-14
lines changed

.travis.yml

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: node_js
2-
sudo: required
32
dist: trusty
4-
node_js: 5
3+
sudo: required
4+
node_js: 6
55
env:
66
- PATH=$HOME/purescript:$PATH
77
install:
@@ -13,12 +13,9 @@ install:
1313
- npm install
1414
- bower install
1515
script:
16-
- npm run build
16+
- npm run -s build
1717
after_success:
1818
- >-
1919
test $TRAVIS_TAG &&
20-
psc-publish > .pursuit.json &&
21-
curl -X POST http://pursuit.purescript.org/packages \
22-
-d @.pursuit.json \
23-
-H 'Accept: application/json' \
24-
-H "Authorization: token ${GITHUB_TOKEN}"
20+
echo $GITHUB_TOKEN | pulp login &&
21+
echo y | pulp publish --no-push

package.json

+3-2
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": "jshint src && jscs src && pulp build"
5+
"build": "jshint src && jscs src && pulp build --censor-lib --strict"
66
},
77
"devDependencies": {
88
"jscs": "^2.8.0",
99
"jshint": "^2.9.1",
10-
"pulp": "^8.1.0",
10+
"pulp": "^8.2.0",
11+
"purescript-psa": "^0.3.8",
1112
"rimraf": "^2.5.0"
1213
}
1314
}

src/Math.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ exports.pow = function (n) {
4848
};
4949
};
5050

51-
exports["%"] = function (n) {
51+
exports.remainder = function (n) {
5252
return function (m) {
5353
return n % m;
5454
};

src/Math.purs

+3-3
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ foreign import tan :: Radians -> Number
6464
-- | number is positive, and `ceil` if the number is negative.
6565
foreign import trunc :: Number -> Number
6666

67-
infixl 7 %
68-
6967
-- | Computes the remainder after division, wrapping Javascript's `%` operator.
70-
foreign import (%) :: Number -> Number -> Number
68+
foreign import remainder :: Number -> Number -> Number
69+
70+
infixl 7 remainder as %
7171

7272
-- | The base of natural logarithms, *e*, around 2.71828.
7373
foreign import e :: Number

0 commit comments

Comments
 (0)