Skip to content

Commit 24eaacc

Browse files
authored
Merge pull request #9 from purescript/compiler/0.12
Updates for 0.12
2 parents bdd6914 + c3d03e6 commit 24eaacc

File tree

5 files changed

+12
-11
lines changed

5 files changed

+12
-11
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
/bower_components/
55
/node_modules/
66
/output/
7+
package-lock.json

bower.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
"package.json"
2020
],
2121
"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"
2424
},
2525
"devDependencies": {
26-
"purescript-console": "^3.0.0"
26+
"purescript-console": "^4.1.0"
2727
}
2828
}

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"test": "pulp test"
77
},
88
"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"
1212
}
1313
}

src/Data/Graph.purs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import Data.List as L
2020
import Data.Map (Map)
2121
import Data.Map as M
2222
import Data.Maybe (Maybe(..), maybe)
23-
import Data.Monoid (mempty)
2423
import Data.Tuple (Tuple(..), fst, snd)
2524

2625
-- | A graph with vertices of type `v`.

test/Main.purs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
module Test.Main where
22

33
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)
67
import Data.Graph (unfoldGraph, topologicalSort)
78
import Data.List (toUnfoldable, range)
89

9-
main :: Eff (console :: CONSOLE) Unit
10+
main :: Effect Unit
1011
main = do
1112
let double x | x * 2 < 100000 = [x * 2]
1213
| otherwise = []
13-
graph = unfoldGraph (range 1 100000) id double
14+
graph = unfoldGraph (range 1 100000) identity double
1415
foreachE (toUnfoldable (topologicalSort graph)) logShow

0 commit comments

Comments
 (0)