Skip to content

Commit 065d5d9

Browse files
committed
Update to 0.14
1 parent 01d49fe commit 065d5d9

File tree

4 files changed

+37
-46
lines changed

4 files changed

+37
-46
lines changed

packages.dhall

Lines changed: 31 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -116,44 +116,41 @@ let additions =
116116
}
117117
-------------------------------
118118
-}
119-
120-
121119
let upstream =
122-
https://github.com/purescript/package-sets/releases/download/psc-0.13.2-20190804/packages.dhall sha256:2230fc547841b54bca815eb0058414aa03ed7b675042f8b3dda644e1952824e5
120+
https://github.com/purescript/package-sets/releases/download/psc-0.14.0-20210324/packages.dhall sha256:b4564d575da6aed1c042ca7936da97c8b7a29473b63f4515f09bb95fae8dddab
123121

124122
let overrides = {=}
125123

126-
let additions =
127-
{ dotlang =
128-
{ dependencies =
129-
[ "colors"
130-
, "console"
131-
, "effect"
132-
, "generics-rep"
133-
, "prelude"
134-
, "psci-support"
135-
, "strings"
136-
, "test-unit"
137-
]
138-
, repo = "https://github.com/csicar/purescript-dotlang.git"
139-
, version = "v2.0.0"
140-
}
141-
, graphviz =
142-
{ dependencies =
143-
[ "aff"
144-
, "console"
145-
, "dotlang"
146-
, "effect"
147-
, "functions"
148-
, "node-fs"
149-
, "node-fs-aff"
150-
, "prelude"
151-
, "psci-support"
152-
, "test-unit"
153-
]
154-
, repo = "https://github.com/csicar/purescript-graphviz"
155-
, version = "master"
124+
let additions =
125+
{ graphviz =
126+
{ dependencies =
127+
[ "aff"
128+
, "console"
129+
, "dotlang"
130+
, "effect"
131+
, "functions"
132+
, "node-fs"
133+
, "node-fs-aff"
134+
, "prelude"
135+
, "psci-support"
136+
, "test-unit"
137+
]
138+
, repo = "https://github.com/csicar/purescript-graphviz"
139+
, version = "v1.3.0"
140+
},
141+
dotlang =
142+
{ dependencies =
143+
[ "colors"
144+
, "console"
145+
, "effect"
146+
, "prelude"
147+
, "psci-support"
148+
, "strings"
149+
, "test-unit"
150+
]
151+
, repo = "https://github.com/csicar/purescript-dotlang.git"
152+
, version = "master"
153+
}
156154
}
157-
}
158155

159156
in upstream // overrides // additions

spago.dhall

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ You can edit this file as you like.
77
[ "console"
88
, "dotlang"
99
, "effect"
10-
, "generics-rep"
1110
, "graphviz"
1211
, "prelude"
1312
, "psci-support"

test/Example.purs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
module Test.Example where
22

33
import Data.DotLang (class GraphRepr, toGraph)
4-
import Data.DotLang.Class (toText)
54
import Data.Function (($))
65
import Data.Generic.Rep (class Generic)
76
import Data.GenericGraph (class Edges, genericEdges, genericToGraph)
8-
import Graphics.Graphviz (renderToText, Engine(..), Format(..))
7+
import Graphics.Graphviz (Engine(..), renderToSvg)
8+
99

1010
data Tree' a = Leaf' | Node' (Tree' a) a (Tree' a)
1111

@@ -14,5 +14,6 @@ derive instance treeGeneric :: Generic (Tree' a) _
1414
instance treeEdges :: Edges a => Edges (Tree' a) where edges x = genericEdges x
1515
instance treeDotRepr :: Edges a => GraphRepr (Tree' a) where toGraph = genericToGraph
1616

17-
example = renderToText Dot Svg $ toText $ toGraph $
17+
example :: String
18+
example = renderToSvg Dot $ toGraph $
1819
Node' Leaf' 3 (Node' (Node' Leaf' 5 Leaf') 4 Leaf')

test/Main.purs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,12 @@ import Data.DotLang (class GraphRepr, toGraph)
66
import Data.DotLang.Class (toText)
77
import Data.Foldable (foldr)
88
import Data.Generic.Rep (class Generic)
9-
import Data.Generic.Rep.Show (genericShow)
109
import Data.GenericGraph (class Edges, genericEdges, genericToGraph)
11-
import Data.List(List(..)) as L
10+
import Data.List (List(..)) as L
11+
import Data.Show.Generic (genericShow)
1212
import Effect (Effect)
13-
import Effect.Aff (Aff)
14-
import Effect.Aff.Class (liftAff)
15-
import Effect.Class (liftEffect)
16-
import Effect.Class.Console (logShow)
17-
import Test.Example (example)
1813
import Test.Unit (suite, test)
1914
import Test.Unit.Assert (equal)
20-
import Test.Unit.Console (log)
2115
import Test.Unit.Main (runTest)
2216

2317
--Simple

0 commit comments

Comments
 (0)