Skip to content

Commit af3d998

Browse files
author
halosghost
committed
Allow title_ and desc_ to have children
1 parent a4b5e3a commit af3d998

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Lucid/Svg/Elements.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ defs_ :: Term arg result => arg -> result
8383
defs_ = term "defs"
8484

8585
-- | @desc@ element
86-
desc_ :: Monad m => [Attribute] -> SvgT m ()
87-
desc_ = with $ makeXmlElementNoEnd "desc"
86+
desc_ :: Term arg result => arg -> result
87+
desc_ = term "desc"
8888

8989
-- | @ellipse@ element
9090
ellipse_ :: Monad m => [Attribute] -> SvgT m ()
@@ -327,8 +327,8 @@ textPath_ :: Term arg result => arg -> result
327327
textPath_ = term "textPath"
328328

329329
-- | @title@ element
330-
title_ :: Monad m => [Attribute] -> SvgT m ()
331-
title_ = with $ makeXmlElementNoEnd "title"
330+
title_ :: Term arg result => arg -> result
331+
title_ = term "title"
332332

333333
-- | @tref@ element
334334
tref_ :: Monad m => [Attribute] -> SvgT m ()

0 commit comments

Comments
 (0)