-
Notifications
You must be signed in to change notification settings - Fork 13
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
update 1.0.0 #15
Conversation
c9e8c4a
to
ebb3095
Compare
@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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, good point!
src/Halogen/HTML/CSS.purs
Outdated
style = | ||
prop (propName "style") (Just $ attrName "style") | ||
HP.prop (HC.PropName "style") |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
ebb3095
to
71a887d
Compare
|
There was a problem hiding this 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!
No description provided.