Skip to content

Commit e0532a9

Browse files
committed
Add doc comment
1 parent 9a7e7cb commit e0532a9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Halogen/VDom/Types.purs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ instance bifunctorVDom ∷ Bifunctor VDom where
4040
bimap f g (Grafted a) = Grafted (bimap f g a)
4141
bimap f g a = Grafted (graft (Graft f g a))
4242

43+
-- | Replaces "widgets" in the `VDom` with the ability to turn them into other
44+
-- | `VDom` nodes.
45+
-- |
46+
-- | Using this function will fuse any `Graft`s present in the `VDom`.
4347
renderWidget a w x. (w VDom a x) VDom a w VDom a x
4448
renderWidget f = case _ of
4549
Text a → Text a

0 commit comments

Comments
 (0)