Skip to content
This repository was archived by the owner on Aug 4, 2023. It is now read-only.

Commit d4b4bf6

Browse files
authored
Updates for 0.11 (#17)
* Updates for 0.11 * Fix test script
1 parent 209b7b7 commit d4b4bf6

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ install:
99
script:
1010
- npm run -s build
1111
- bower install
12-
- npm run -s example
12+
- npm run -s test
1313
after_success:
1414
- >-
1515
test $TRAVIS_TAG &&

bower.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
"example"
2828
],
2929
"dependencies": {
30-
"purescript-aff": "^2.0.0",
31-
"purescript-node-fs": "^3.0.0",
32-
"purescript-either": "^2.0.0",
33-
"purescript-node-path": "^1.0.0"
30+
"purescript-aff": "^3.0.0",
31+
"purescript-either": "^3.0.0",
32+
"purescript-node-fs": "^4.0.0",
33+
"purescript-node-path": "^2.0.0"
3434
}
3535
}

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
"private": true,
33
"scripts": {
44
"clean": "rimraf output && rimraf .pulp-cache",
5-
"build": "pulp build --censor-lib --strict",
6-
"example": "pulp run -I example --main Example.Main"
5+
"build": "pulp build -- --censor-lib --strict",
6+
"test": "pulp test"
77
},
88
"devDependencies": {
9-
"pulp": "^9.0.1",
10-
"purescript-psa": "^0.3.9",
11-
"purescript": "^0.10.1",
9+
"pulp": "^11.0.0",
10+
"purescript-psa": "^0.5.0",
11+
"purescript": "^0.11.1",
1212
"rimraf": "^2.5.4"
1313
}
1414
}

example/example.purs renamed to test/Main.purs

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module Example.Main where
1+
module Test.Main where
22

33
import Prelude
44

@@ -7,21 +7,21 @@ import Control.Monad.Eff (Eff)
77
import Control.Monad.Eff.Class (liftEff)
88
import Control.Monad.Eff.Console (CONSOLE, log)
99
import Control.Monad.Eff.Exception (EXCEPTION)
10-
import Data.Array (filterM)
10+
import Data.Array (filterA)
1111
import Data.Maybe (maybe)
1212
import Data.String (charAt, singleton)
1313
import Node.FS (FS)
1414
import Node.FS.Aff (stat, readdir)
1515
import Node.FS.Stats (isDirectory)
1616

17-
main :: forall eff. Eff ( err :: EXCEPTION
18-
, fs :: FS
19-
, console :: CONSOLE
17+
main :: forall eff. Eff ( exception :: EXCEPTION
18+
, fs :: FS
19+
, console :: CONSOLE
2020
| eff
2121
) Unit
2222
main = void $ launchAff do
2323
files <- readdir "."
24-
files' <- flip filterM files \file -> do
24+
files' <- flip filterA files \file -> do
2525
stat <- stat file
2626
pure $ isDirectory stat
2727
&& (maybe false (singleton >>> (_ /= ".")) $ charAt 0 file)

0 commit comments

Comments
 (0)