Skip to content

update 1.0.0 #15

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 1 commit into from
Feb 7, 2017
Merged

Conversation

cryogenian
Copy link
Contributor

No description provided.

@cryogenian cryogenian force-pushed the halogen-1.0.0 branch 2 times, most recently from c9e8c4a to ebb3095 Compare February 6, 2017 21:51
@cryogenian cryogenian requested a review from garyb February 6, 2017 23:14
@cryogenian
Copy link
Contributor Author

@garyb please review

@@ -64,8 +65,8 @@ style =
rights = concatMap $ foldMap singleton

-- | Render a set of rules as a `style` element.
stylesheet ∷ ∀ p i. CSS → HTML p i
stylesheet ∷ ∀ p i. CSS → HC.HTML p i
Copy link
Member

Choose a reason for hiding this comment

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

We can use HTMLstyle from DOM.HTML.Indexed for the p here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, that was my initial intention. But Node and Leaf from Halogen.HTML.Elements are functions from Array (IProp _) now and this thing doesn't use any props

Copy link
Member

Choose a reason for hiding this comment

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

Oh, good point!

style =
prop (propName "style") (Just $ attrName "style")
HP.prop (HC.PropName "style")
Copy link
Member

Choose a reason for hiding this comment

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

Instead of setting up a new prop and creating a IsProp instance for Styles I think we may as well reuse HP.style and compose in a function to print the CSS as a string. We can get rid of the Styles newtype then too, which was only there for the IsProp machinery.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

@cryogenian
Copy link
Contributor Author

  • Removed Styles newtype

Copy link
Member

@garyb garyb left a comment

Choose a reason for hiding this comment

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

👍 assuming Travis passes again!

@cryogenian cryogenian merged commit 54ba987 into purescript-halogen:master Feb 7, 2017
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.

2 participants