File tree Expand file tree Collapse file tree 6 files changed +34
-18
lines changed Expand file tree Collapse file tree 6 files changed +34
-18
lines changed Original file line number Diff line number Diff line change 11{
22 "preset" : " grunt" ,
3+ "disallowSpacesInFunctionExpression" : null ,
4+ "requireSpacesInFunctionExpression" : {
5+ "beforeOpeningRoundBrace" : true ,
6+ "beforeOpeningCurlyBrace" : true
7+ },
38 "disallowSpacesInAnonymousFunctionExpression" : null ,
49 "requireSpacesInAnonymousFunctionExpression" : {
510 "beforeOpeningRoundBrace" : true ,
Original file line number Diff line number Diff line change 77 "futurehostile" : true ,
88 "strict" : " global" ,
99 "latedef" : true ,
10+ "maxparams" : 1 ,
1011 "noarg" : true ,
1112 "nocomma" : true ,
1213 "nonew" : true ,
1314 "notypeof" : true ,
1415 "singleGroups" : true ,
1516 "undef" : true ,
1617 "unused" : true ,
17- "eqnull" : true
18+ "eqnull" : true ,
19+ "predef" : [" exports" ]
1820}
Original file line number Diff line number Diff line change 11language : node_js
2- sudo : false
3- node_js :
4- - 4
5- - 5
2+ sudo : required
3+ dist : trusty
4+ node_js : 5
65env :
76 - PATH=$HOME/purescript:$PATH
87install :
98 - TAG=$(wget -q -O - https://github.com/purescript/purescript/releases/latest --server-response --max-redirect 0 2>&1 | sed -n -e 's/.*Location:.*tag\///p')
109 - wget -O $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz
1110 - tar -xvf $HOME/purescript.tar.gz -C $HOME/
1211 - chmod a+x $HOME/purescript
12+ - npm install -g bower
1313 - npm install
14+ - bower install
1415script :
1516 - npm run build
17+ after_success :
18+ - >-
19+ 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}"
Original file line number Diff line number Diff line change @@ -12,8 +12,6 @@ Utility functions for the `Array` type - JavaScript's native arrays.
1212bower install purescript-arrays
1313```
1414
15- ## Module documentation
15+ ## Documentation
1616
17- - [ Data.Array] ( docs/Data/Array.md )
18- - [ Data.Array.ST] ( docs/Data/Array/ST.md )
19- - [ Data.Array.Unsafe] ( docs/Data/Array/Unsafe.md )
17+ Module documentation is [ published on Pursuit] ( http://pursuit.purescript.org/packages/purescript-arrays ) .
Original file line number Diff line number Diff line change 11{
22 "private" : true ,
33 "scripts" : {
4- "postinstall " : " pulp dep install " ,
5- "build" : " jshint src && jscs src && pulp test && rimraf docs && pulp docs "
4+ "clean " : " rimraf output && rimraf .pulp-cache " ,
5+ "build" : " jshint src && jscs src && pulp build "
66 },
77 "devDependencies" : {
8- "jscs" : " ^1.13.1 " ,
9- "jshint" : " ^2.8.0 " ,
10- "pulp" : " ^4.0.1 " ,
11- "rimraf" : " ^2.4.1 "
8+ "jscs" : " ^2.8.0 " ,
9+ "jshint" : " ^2.9.1 " ,
10+ "pulp" : " ^8.1.0 " ,
11+ "rimraf" : " ^2.5.0 "
1212 }
1313}
Original file line number Diff line number Diff line change @@ -29,19 +29,20 @@ exports.replicate = function (n) {
2929} ;
3030
3131exports . fromFoldableImpl = ( function ( ) {
32- function Cons ( head , tail ) {
32+ // jshint maxparams: 2
33+ function Cons ( head , tail ) {
3334 this . head = head ;
3435 this . tail = tail ;
3536 }
3637 var emptyList = { } ;
3738
38- function curryCons ( head ) {
39+ function curryCons ( head ) {
3940 return function ( tail ) {
4041 return new Cons ( head , tail ) ;
4142 } ;
4243 }
4344
44- function listToArray ( list ) {
45+ function listToArray ( list ) {
4546 var result = [ ] ;
4647 var count = 0 ;
4748 while ( list !== emptyList ) {
@@ -225,6 +226,7 @@ exports.partition = function (f) {
225226
226227exports . sortImpl = function ( f ) {
227228 return function ( l ) {
229+ // jshint maxparams: 2
228230 return l . slice ( ) . sort ( function ( x , y ) {
229231 return f ( x ) ( y ) ;
230232 } ) ;
You can’t perform that action at this time.
0 commit comments