This repository was archived by the owner on Aug 4, 2023. It is now read-only.
File tree 4 files changed +16
-16
lines changed
4 files changed +16
-16
lines changed Original file line number Diff line number Diff line change 9
9
script :
10
10
- npm run -s build
11
11
- bower install
12
- - npm run -s example
12
+ - npm run -s test
13
13
after_success :
14
14
- >-
15
15
test $TRAVIS_TAG &&
Original file line number Diff line number Diff line change 27
27
" example"
28
28
],
29
29
"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"
34
34
}
35
35
}
Original file line number Diff line number Diff line change 2
2
"private" : true ,
3
3
"scripts" : {
4
4
"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 "
7
7
},
8
8
"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" ,
12
12
"rimraf" : " ^2.5.4"
13
13
}
14
14
}
Original file line number Diff line number Diff line change 1
- module Example .Main where
1
+ module Test .Main where
2
2
3
3
import Prelude
4
4
@@ -7,21 +7,21 @@ import Control.Monad.Eff (Eff)
7
7
import Control.Monad.Eff.Class (liftEff )
8
8
import Control.Monad.Eff.Console (CONSOLE , log )
9
9
import Control.Monad.Eff.Exception (EXCEPTION )
10
- import Data.Array (filterM )
10
+ import Data.Array (filterA )
11
11
import Data.Maybe (maybe )
12
12
import Data.String (charAt , singleton )
13
13
import Node.FS (FS )
14
14
import Node.FS.Aff (stat , readdir )
15
15
import Node.FS.Stats (isDirectory )
16
16
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
20
20
| eff
21
21
) Unit
22
22
main = void $ launchAff do
23
23
files <- readdir " ."
24
- files' <- flip filterM files \file -> do
24
+ files' <- flip filterA files \file -> do
25
25
stat <- stat file
26
26
pure $ isDirectory stat
27
27
&& (maybe false (singleton >>> (_ /= " ." )) $ charAt 0 file)
You can’t perform that action at this time.
0 commit comments