File tree Expand file tree Collapse file tree 5 files changed +12
-11
lines changed Expand file tree Collapse file tree 5 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 4
4
/bower_components /
5
5
/node_modules /
6
6
/output /
7
+ package-lock.json
Original file line number Diff line number Diff line change 19
19
" package.json"
20
20
],
21
21
"dependencies" : {
22
- "purescript-sets " : " ^3 .0.0" ,
23
- "purescript-catenable-lists" : " ^4 .0.0"
22
+ "purescript-ordered-collections " : " ^1 .0.0" ,
23
+ "purescript-catenable-lists" : " ^5 .0.0"
24
24
},
25
25
"devDependencies" : {
26
- "purescript-console" : " ^3.0 .0"
26
+ "purescript-console" : " ^4.1 .0"
27
27
}
28
28
}
Original file line number Diff line number Diff line change 6
6
"test" : " pulp test"
7
7
},
8
8
"devDependencies" : {
9
- "pulp" : " ^11.0 .0" ,
10
- "purescript-psa" : " ^0.5.1 " ,
11
- "rimraf" : " ^2.6.1 "
9
+ "pulp" : " ^12.2 .0" ,
10
+ "purescript-psa" : " ^0.6.0 " ,
11
+ "rimraf" : " ^2.6.2 "
12
12
}
13
13
}
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ import Data.List as L
20
20
import Data.Map (Map )
21
21
import Data.Map as M
22
22
import Data.Maybe (Maybe (..), maybe )
23
- import Data.Monoid (mempty )
24
23
import Data.Tuple (Tuple (..), fst , snd )
25
24
26
25
-- | A graph with vertices of type `v`.
Original file line number Diff line number Diff line change 1
1
module Test.Main where
2
2
3
3
import Prelude
4
- import Control.Monad.Eff (foreachE , Eff )
5
- import Control.Monad.Eff.Console (CONSOLE , logShow )
4
+
5
+ import Effect (Effect , foreachE )
6
+ import Effect.Console (logShow )
6
7
import Data.Graph (unfoldGraph , topologicalSort )
7
8
import Data.List (toUnfoldable , range )
8
9
9
- main :: Eff ( console :: CONSOLE ) Unit
10
+ main :: Effect Unit
10
11
main = do
11
12
let double x | x * 2 < 100000 = [x * 2 ]
12
13
| otherwise = []
13
- graph = unfoldGraph (range 1 100000 ) id double
14
+ graph = unfoldGraph (range 1 100000 ) identity double
14
15
foreachE (toUnfoldable (topologicalSort graph)) logShow
You can’t perform that action at this time.
0 commit comments