Skip to content

Commit 0b7089a

Browse files
committed
Update build, fix warning
1 parent a15b85a commit 0b7089a

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

.travis.yml

Lines changed: 5 additions & 8 deletions
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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
"private": true,
33
"scripts": {
44
"clean": "rimraf output && rimraf .pulp-cache",
5-
"build": "pulp build"
5+
"build": "pulp build --censor-lib --strict"
66
},
77
"devDependencies": {
8-
"pulp": "^8.1.0",
8+
"pulp": "^8.2.0",
9+
"purescript-psa": "^0.3.8",
910
"rimraf": "^2.5.0"
1011
}
1112
}

src/Data/Graph.purs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module Data.Graph
1111
, topSort'
1212
) where
1313

14-
import Prelude
14+
import Prelude hiding
1515

1616
import Control.Monad.Eff (runPure)
1717
import Control.Monad.ST (writeSTRef, modifySTRef, readSTRef, newSTRef, runST)
@@ -110,8 +110,8 @@ scc' makeKey makeVert (Graph vs es) = runPure (runST (do
110110
modifySTRef lowlinkMap $ M.alter (maybeMin lowlink) k
111111
_ -> when (l `elem` map makeKey currentPath) $ do
112112
wIndex' <- indexOfKey l
113-
for_ wIndex' $ \index ->
114-
modifySTRef lowlinkMap $ M.alter (maybeMin index) k
113+
for_ wIndex' $ \index' ->
114+
modifySTRef lowlinkMap $ M.alter (maybeMin index') k
115115

116116
vIndex <- indexOfKey k
117117
vLowlink <- lowlinkOfKey k

0 commit comments

Comments
 (0)