Skip to content

Commit

Permalink
Update for PureScript 0.14 (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomashoneyman authored Nov 5, 2021
1 parent d3707a3 commit 7f0b52f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
17 changes: 6 additions & 11 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,13 @@
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "git://github.com/slamdata/purescript-halogen-vdom-string-renderer.git"
"url": "https://github.com/purescript-halogen/purescript-halogen-vdom-string-renderer.git"
},
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"output"
],
"ignore": ["**/.*", "node_modules", "bower_components", "output"],
"dependencies": {
"purescript-prelude": "^4.1.1",
"purescript-halogen-vdom": "^6.1.0",
"purescript-ordered-collections": "^1.6.1",
"purescript-foreign": "^5.0.0"
"purescript-prelude": "^5.0.0",
"purescript-halogen-vdom": "^7.0.0",
"purescript-ordered-collections": "^2.0.0",
"purescript-foreign": "^6.0.0"
}
}
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@
"build": "pulp build -- --censor-lib --strict"
},
"devDependencies": {
"pulp": "^14.0.0",
"purescript-psa": "^0.7.3",
"purescript": "^0.13.6",
"pulp": "^15.0.0",
"purescript-psa": "^0.8.2",
"purescript": "^0.14.1",
"rimraf": "^3.0.2"
},
"dependencies": {
"bower": "^1.8.12"
}
}
2 changes: 1 addition & 1 deletion src/Halogen/VDom/StringRenderer.purs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ render getTagType renderAttrs renderWidget = go
as = renderAttrs attrs
as' = maybe as (\(Namespace ns) -> "xmlns=\"" <> escape ns <> "\"" <> if S.null as then "" else " " <> as) maybeNamespace
in
"<" <> name <> (if S.null as then "" else " ") <> as <>
"<" <> name <> (if S.null as' then "" else " ") <> as' <>
if A.null children
then if getTagType elemName == SelfClosingTag then "/>" else "></" <> name <> ">"
else ">" <> S.joinWith "" (map go children) <> "</" <> name <> ">"

0 comments on commit 7f0b52f

Please sign in to comment.