Skip to content

Commit 7f0b52f

Browse files
Update for PureScript 0.14 (#10)
1 parent d3707a3 commit 7f0b52f

File tree

3 files changed

+13
-15
lines changed

3 files changed

+13
-15
lines changed

bower.json

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,13 @@
33
"license": "Apache-2.0",
44
"repository": {
55
"type": "git",
6-
"url": "git://github.com/slamdata/purescript-halogen-vdom-string-renderer.git"
6+
"url": "https://github.com/purescript-halogen/purescript-halogen-vdom-string-renderer.git"
77
},
8-
"ignore": [
9-
"**/.*",
10-
"node_modules",
11-
"bower_components",
12-
"output"
13-
],
8+
"ignore": ["**/.*", "node_modules", "bower_components", "output"],
149
"dependencies": {
15-
"purescript-prelude": "^4.1.1",
16-
"purescript-halogen-vdom": "^6.1.0",
17-
"purescript-ordered-collections": "^1.6.1",
18-
"purescript-foreign": "^5.0.0"
10+
"purescript-prelude": "^5.0.0",
11+
"purescript-halogen-vdom": "^7.0.0",
12+
"purescript-ordered-collections": "^2.0.0",
13+
"purescript-foreign": "^6.0.0"
1914
}
2015
}

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@
55
"build": "pulp build -- --censor-lib --strict"
66
},
77
"devDependencies": {
8-
"pulp": "^14.0.0",
9-
"purescript-psa": "^0.7.3",
10-
"purescript": "^0.13.6",
8+
"pulp": "^15.0.0",
9+
"purescript-psa": "^0.8.2",
10+
"purescript": "^0.14.1",
1111
"rimraf": "^3.0.2"
12+
},
13+
"dependencies": {
14+
"bower": "^1.8.12"
1215
}
1316
}

src/Halogen/VDom/StringRenderer.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ render getTagType renderAttrs renderWidget = go
4747
as = renderAttrs attrs
4848
as' = maybe as (\(Namespace ns) -> "xmlns=\"" <> escape ns <> "\"" <> if S.null as then "" else " " <> as) maybeNamespace
4949
in
50-
"<" <> name <> (if S.null as then "" else " ") <> as <>
50+
"<" <> name <> (if S.null as' then "" else " ") <> as' <>
5151
if A.null children
5252
then if getTagType elemName == SelfClosingTag then "/>" else "></" <> name <> ">"
5353
else ">" <> S.joinWith "" (map go children) <> "</" <> name <> ">"

0 commit comments

Comments
 (0)