diff --git a/.travis.yml b/.travis.yml index 7f150a3..d5bba8a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,14 @@ language: node_js dist: trusty sudo: required node_js: stable +env: + - PATH=$HOME/purescript:$PATH install: + - npm install -g bower + - 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') + - wget -O $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz + - tar -xvf $HOME/purescript.tar.gz -C $HOME/ + - chmod a+x $HOME/purescript - npm install -g bower - npm install - bower install --production diff --git a/bower.json b/bower.json index d5d0ffb..a4de691 100644 --- a/bower.json +++ b/bower.json @@ -17,11 +17,11 @@ "package.json" ], "dependencies": { - "purescript-effect": "#compiler/0.12" + "purescript-effect": "^2.0.0" }, "devDependencies": { - "purescript-assert": "#compiler/0.12", - "purescript-refs": "#compiler/0.12", - "purescript-console": "#compiler/0.12" + "purescript-assert": "^4.0.0", + "purescript-refs": "^4.0.0", + "purescript-console": "^4.1.0" } } diff --git a/package.json b/package.json index 5a71519..6615039 100644 --- a/package.json +++ b/package.json @@ -6,10 +6,9 @@ "test": "pulp test" }, "devDependencies": { - "eslint": "^3.19.0", - "pulp": "^11.0.0", - "purescript-psa": "^0.5.0", - "purescript": "^0.11.1", - "rimraf": "^2.6.1" + "eslint": "^4.19.1", + "pulp": "^12.2.0", + "purescript-psa": "^0.6.0", + "rimraf": "^2.6.2" } } diff --git a/test/Main.purs b/test/Main.purs index 71b66bd..832ea23 100644 --- a/test/Main.purs +++ b/test/Main.purs @@ -14,7 +14,7 @@ main = do void $ T.setTimeout 10 do C.log "timeout increment counter" - R.modify (_ + 1) counter + void $ R.modify (_ + 1) counter void $ T.setTimeout 50 do C.log "timeout check counter" @@ -24,7 +24,7 @@ main = do void $ T.setTimeout 100 do t <- T.setTimeout 20 do - R.modify (_ + 1) counter + void $ R.modify (_ + 1) counter T.clearTimeout t @@ -37,7 +37,7 @@ main = do i <- T.setInterval 20 do C.log "interval increment counter" - R.modify (_ + 1) counter + void $ R.modify (_ + 1) counter void $ T.setTimeout 90 do T.clearInterval i