We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 161a50c commit a7cd103Copy full SHA for a7cd103
src/React/Basic/Hooks.purs
@@ -242,6 +242,11 @@ instance applicativeRender :: TypeEquals x y => Applicative (Render x y) where
242
instance bindRender :: TypeEquals x y => Bind (Render x y) where
243
bind (Render m) f = Render (Prelude.bind m \a -> case f a of Render b -> b)
244
245
+instance semigroupRender :: (TypeEquals x y, Semigroup a) => Semigroup (Render x y a) where
246
+ append (Render a) (Render b) = Render (append a b)
247
+
248
+instance monoidRender :: (TypeEquals x y, Monoid a) => Monoid (Render x y a) where
249
+ mempty = Render mempty
250
251
-- | Retrieve the Display Name from a `ReactComponent`. Useful for debugging and improving
252
-- | error messages in logs.
0 commit comments