Skip to content

Commit

Permalink
Add doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
garyb committed Mar 20, 2019
1 parent 9a7e7cb commit e0532a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Halogen/VDom/Types.purs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ instance bifunctorVDom ∷ Bifunctor VDom where
bimap f g (Grafted a) = Grafted (bimap f g a)
bimap f g a = Grafted (graft (Graft f g a))

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

0 comments on commit e0532a9

Please sign in to comment.