We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 012d265 commit 4c2d20bCopy full SHA for 4c2d20b
src/React/Basic/Emotion.purs
@@ -55,6 +55,9 @@ foreign import emptyStyle :: Style
55
class IsStyle a where
56
style :: a -> Style
57
58
+instance isStyleStyle :: IsStyle Style where
59
+ style = identity
60
+
61
data StyleProperty
62
63
instance semigroupStyleProperty :: Semigroup StyleProperty where
@@ -78,6 +81,9 @@ foreign import emptyStyleProperty :: StyleProperty
78
81
class IsStyleProperty a where
79
82
prop :: a -> StyleProperty
80
83
84
+instance isStylePropertyStyleProperty :: IsStyleProperty StyleProperty where
85
+ prop = identity
86
87
-- | Create a `JSX` node from a `ReactComponent`, by providing the props.
88
-- |
89
-- | This function is identical to `React.Basic.element` plus Emotion's
0 commit comments