Skip to content

Update for PureScript 0.14 #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 5, 2021
Merged

Update for PureScript 0.14 #10

merged 2 commits into from
Nov 5, 2021

Conversation

thomashoneyman
Copy link
Member

No description provided.

@@ -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' <>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as' was previously unused -- presumably it was supposed to be used here?

@thomashoneyman thomashoneyman requested a review from garyb May 5, 2021 22:50
@garyb
Copy link
Member

garyb commented May 20, 2021

Changes look good to me! Should we switch this to GH actions too? Especially since Travis seems to have done something weird with these builds.

…attributes. (#11)

Due to a mixup with primed and non-primed variable names (`as` and
`as'`), if you have an element with a namespace but no attributes,
such as `SVG.g [] [ ... ]` it was rendering as: `<gxmlns="..."`.

This commit fixes that behaviour.

Co-authored-by: Kris Jenkins <[email protected]>
@thomashoneyman thomashoneyman merged commit 7f0b52f into master Nov 5, 2021
@thomashoneyman thomashoneyman deleted the 0.14 branch November 5, 2021 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants