/usr/share/doc/libghc-lucid-doc/html/Lucid-Base.html is in libghc-lucid-doc 2.9.4-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Lucid.Base</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Lucid-Base.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Lucid-Base.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">lucid-2.9.4: Clear to write, read and edit DSL for HTML</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Lucid.Base</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Rendering</a></li><li><a href="#g:2">Running</a></li><li><a href="#g:3">Combinators</a></li><li><a href="#g:4">Types</a></li><li><a href="#g:5">Classes</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Base types and combinators.</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><a href="#v:renderText">renderText</a> :: <a href="Lucid-Base.html#t:Html">Html</a> a -> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a></li><li class="src short"><a href="#v:renderBS">renderBS</a> :: <a href="Lucid-Base.html#t:Html">Html</a> a -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:renderTextT">renderTextT</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m a -> m <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a></li><li class="src short"><a href="#v:renderBST">renderBST</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m a -> m <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:renderToFile">renderToFile</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:FilePath">FilePath</a> -> <a href="Lucid-Base.html#t:Html">Html</a> a -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:execHtmlT">execHtmlT</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m a -> m <a href="file:///usr/share/doc/libghc-blaze-builder-doc/html/Blaze-ByteString-Builder.html#t:Builder">Builder</a></li><li class="src short"><a href="#v:evalHtmlT">evalHtmlT</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m a -> m a</li><li class="src short"><a href="#v:makeElement">makeElement</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> <a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m a -> <a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m a</li><li class="src short"><a href="#v:makeElementNoEnd">makeElementNoEnd</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> <a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m ()</li><li class="src short"><a href="#v:makeXmlElementNoEnd">makeXmlElementNoEnd</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> <a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m ()</li><li class="src short"><a href="#v:makeAttribute">makeAttribute</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> <a href="Lucid-Base.html#t:Attribute">Attribute</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:Html">Html</a> = <a href="Lucid-Base.html#t:HtmlT">HtmlT</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Functor-Identity.html#t:Identity">Identity</a></li><li class="src short"><span class="keyword">newtype</span> <a href="#t:HtmlT">HtmlT</a> m a = <a href="#v:HtmlT">HtmlT</a> {<ul class="subs"><li><a href="#v:runHtmlT">runHtmlT</a> :: m (<a href="file:///usr/share/doc/libghc-unordered-containers-doc/html/Data-HashMap-Strict.html#t:HashMap">HashMap</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> <a href="file:///usr/share/doc/libghc-blaze-builder-doc/html/Blaze-ByteString-Builder.html#t:Builder">Builder</a>, a)</li></ul>}</li><li class="src short"><span class="keyword">data</span> <a href="#t:Attribute">Attribute</a> = <a href="#v:Attribute">Attribute</a> !<a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> !<a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></li><li class="src short"><span class="keyword">class</span> <a href="#t:Term">Term</a> arg result | result -> arg <span class="keyword">where</span><ul class="subs"><li><a href="#v:term">term</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> arg -> result</li><li><a href="#v:termWith">termWith</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> [<a href="Lucid-Base.html#t:Attribute">Attribute</a>] -> arg -> result</li></ul></li><li class="src short"><span class="keyword">class</span> <a href="#t:TermRaw">TermRaw</a> arg result | result -> arg <span class="keyword">where</span><ul class="subs"><li><a href="#v:termRaw">termRaw</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> arg -> result</li><li><a href="#v:termRawWith">termRawWith</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> [<a href="Lucid-Base.html#t:Attribute">Attribute</a>] -> arg -> result</li></ul></li><li class="src short"><span class="keyword">class</span> <a href="#t:ToHtml">ToHtml</a> a <span class="keyword">where</span><ul class="subs"><li><a href="#v:toHtml">toHtml</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m => a -> <a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m ()</li><li><a href="#v:toHtmlRaw">toHtmlRaw</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m => a -> <a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m ()</li></ul></li><li class="src short"><span class="keyword">class</span> <a href="#t:With">With</a> a <span class="keyword">where</span><ul class="subs"><li><a href="#v:with">with</a> :: a -> [<a href="Lucid-Base.html#t:Attribute">Attribute</a>] -> a</li></ul></li></ul></div><div id="interface"><h1 id="g:1">Rendering</h1><div class="top"><p class="src"><a name="v:renderText" class="def">renderText</a> :: <a href="Lucid-Base.html#t:Html">Html</a> a -> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a> <a href="src/Lucid-Base.html#renderText" class="link">Source</a></p><div class="doc"><p>Render the HTML to a lazy <code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></code>.</p><p>This is a convenience function defined in terms of <code><a href="Lucid-Base.html#v:execHtmlT">execHtmlT</a></code>,
<code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Functor-Identity.html#v:runIdentity">runIdentity</a></code> and <code><a href="file:///usr/share/doc/libghc-blaze-builder-doc/html/Blaze-ByteString-Builder.html#v:toLazyByteString">toLazyByteString</a></code>, and
<code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy-Encoding.html#v:decodeUtf8">decodeUtf8</a></code>. Check the source if you're interested in the
lower-level behaviour.</p></div></div><div class="top"><p class="src"><a name="v:renderBS" class="def">renderBS</a> :: <a href="Lucid-Base.html#t:Html">Html</a> a -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString-Lazy.html#t:ByteString">ByteString</a> <a href="src/Lucid-Base.html#renderBS" class="link">Source</a></p><div class="doc"><p>Render the HTML to a lazy <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></code>.</p><p>This is a convenience function defined in terms of <code><a href="Lucid-Base.html#v:execHtmlT">execHtmlT</a></code>,
<code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Functor-Identity.html#v:runIdentity">runIdentity</a></code> and <code><a href="file:///usr/share/doc/libghc-blaze-builder-doc/html/Blaze-ByteString-Builder.html#v:toLazyByteString">toLazyByteString</a></code>. Check the source if
you're interested in the lower-level behaviour.</p></div></div><div class="top"><p class="src"><a name="v:renderTextT" class="def">renderTextT</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m a -> m <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a> <a href="src/Lucid-Base.html#renderTextT" class="link">Source</a></p><div class="doc"><p>Render the HTML to a lazy <code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></code>, but in a monad.</p><p>This is a convenience function defined in terms of <code><a href="Lucid-Base.html#v:execHtmlT">execHtmlT</a></code> and
<code><a href="file:///usr/share/doc/libghc-blaze-builder-doc/html/Blaze-ByteString-Builder.html#v:toLazyByteString">toLazyByteString</a></code>, and <code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy-Encoding.html#v:decodeUtf8">decodeUtf8</a></code>. Check the source if
you're interested in the lower-level behaviour.</p></div></div><div class="top"><p class="src"><a name="v:renderBST" class="def">renderBST</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m a -> m <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString-Lazy.html#t:ByteString">ByteString</a> <a href="src/Lucid-Base.html#renderBST" class="link">Source</a></p><div class="doc"><p>Render the HTML to a lazy <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></code>, but in a monad.</p><p>This is a convenience function defined in terms of <code><a href="Lucid-Base.html#v:execHtmlT">execHtmlT</a></code> and
<code><a href="file:///usr/share/doc/libghc-blaze-builder-doc/html/Blaze-ByteString-Builder.html#v:toLazyByteString">toLazyByteString</a></code>. Check the source if you're interested in
the lower-level behaviour.</p></div></div><div class="top"><p class="src"><a name="v:renderToFile" class="def">renderToFile</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:FilePath">FilePath</a> -> <a href="Lucid-Base.html#t:Html">Html</a> a -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> () <a href="src/Lucid-Base.html#renderToFile" class="link">Source</a></p><div class="doc"><p>Render the HTML to a lazy <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></code>.</p><p>This is a convenience function defined in terms of <code><a href="Lucid-Base.html#v:execHtmlT">execHtmlT</a></code>,
<code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Functor-Identity.html#v:runIdentity">runIdentity</a></code> and <code><a href="file:///usr/share/doc/libghc-blaze-builder-doc/html/Blaze-ByteString-Builder.html#v:toLazyByteString">toLazyByteString</a></code>. Check the source if
you're interested in the lower-level behaviour.</p></div></div><h1 id="g:2">Running</h1><div class="top"><p class="src"><a name="v:execHtmlT" class="def">execHtmlT</a> <a href="src/Lucid-Base.html#execHtmlT" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m a</td><td class="doc"><p>The HTML to generate.</p></td></tr><tr><td class="src">-> m <a href="file:///usr/share/doc/libghc-blaze-builder-doc/html/Blaze-ByteString-Builder.html#t:Builder">Builder</a></td><td class="doc"><p>The <code>a</code> is discarded.</p></td></tr></table></div><div class="doc"><p>Build the HTML. Analogous to <code>execState</code>.</p><p>You might want to use this is if you want to do something with the
raw <code><a href="file:///usr/share/doc/libghc-blaze-builder-doc/html/Blaze-ByteString-Builder.html#t:Builder">Builder</a></code>. Otherwise for simple cases you can just use
<code><a href="Lucid-Base.html#v:renderText">renderText</a></code> or <code><a href="Lucid-Base.html#v:renderBS">renderBS</a></code>.</p></div></div><div class="top"><p class="src"><a name="v:evalHtmlT" class="def">evalHtmlT</a> <a href="src/Lucid-Base.html#evalHtmlT" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m a</td><td class="doc"><p>HTML monad to evaluate.</p></td></tr><tr><td class="src">-> m a</td><td class="doc"><p>Ignore the HTML output and just return the value.</p></td></tr></table></div><div class="doc"><p>Evaluate the HTML to its return value. Analogous to <code>evalState</code>.</p><p>Use this if you want to ignore the HTML output of an action
completely and just get the result.</p><p>For using with the <code><a href="Lucid-Base.html#t:Html">Html</a></code> type, you'll need <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Functor-Identity.html#v:runIdentity">runIdentity</a></code> e.g.</p><pre class="screen"><code class="prompt">>>> </code><strong class="userinput"><code>runIdentity (evalHtmlT (p_ "Hello!"))
</code></strong>()
</pre></div></div><h1 id="g:3">Combinators</h1><div class="top"><p class="src"><a name="v:makeElement" class="def">makeElement</a> <a href="src/Lucid-Base.html#makeElement" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></td><td class="doc"><p>Name.</p></td></tr><tr><td class="src">-> <a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m a</td><td class="doc"><p>Children HTML.</p></td></tr><tr><td class="src">-> <a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m a</td><td class="doc"><p>A parent element.</p></td></tr></table></div><div class="doc"><p>Make an HTML builder.</p></div></div><div class="top"><p class="src"><a name="v:makeElementNoEnd" class="def">makeElementNoEnd</a> <a href="src/Lucid-Base.html#makeElementNoEnd" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></td><td class="doc"><p>Name.</p></td></tr><tr><td class="src">-> <a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m ()</td><td class="doc"><p>A parent element.</p></td></tr></table></div><div class="doc"><p>Make an HTML builder for elements which have no ending tag.</p></div></div><div class="top"><p class="src"><a name="v:makeXmlElementNoEnd" class="def">makeXmlElementNoEnd</a> <a href="src/Lucid-Base.html#makeXmlElementNoEnd" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></td><td class="doc"><p>Name.</p></td></tr><tr><td class="src">-> <a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m ()</td><td class="doc"><p>A parent element.</p></td></tr></table></div><div class="doc"><p>Make an XML builder for elements which have no ending tag.</p></div></div><div class="top"><p class="src"><a name="v:makeAttribute" class="def">makeAttribute</a> <a href="src/Lucid-Base.html#makeAttribute" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></td><td class="doc"><p>Attribute name.</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></td><td class="doc"><p>Attribute value.</p></td></tr><tr><td class="src">-> <a href="Lucid-Base.html#t:Attribute">Attribute</a></td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Make an attribute builder.</p></div></div><h1 id="g:4">Types</h1><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:Html" class="def">Html</a> = <a href="Lucid-Base.html#t:HtmlT">HtmlT</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Functor-Identity.html#t:Identity">Identity</a> <a href="src/Lucid-Base.html#Html" class="link">Source</a></p><div class="doc"><p>Simple HTML builder type. Defined in terms of <code><a href="Lucid-Base.html#t:HtmlT">HtmlT</a></code>. Check out
that type for instance information.</p><p>Simple use-cases will just use this type. But if you want to
transformer over Reader or something, you can go and use <code><a href="Lucid-Base.html#t:HtmlT">HtmlT</a></code>.</p></div></div><div class="top"><p class="src"><span class="keyword">newtype</span> <a name="t:HtmlT" class="def">HtmlT</a> m a <a href="src/Lucid-Base.html#HtmlT" class="link">Source</a></p><div class="doc"><p>A monad transformer that generates HTML. Use the simpler <code><a href="Lucid-Base.html#t:Html">Html</a></code>
type if you don't want to transform over some other monad.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:HtmlT" class="def">HtmlT</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:runHtmlT" class="def">runHtmlT</a> :: m (<a href="file:///usr/share/doc/libghc-unordered-containers-doc/html/Data-HashMap-Strict.html#t:HashMap">HashMap</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> <a href="file:///usr/share/doc/libghc-blaze-builder-doc/html/Blaze-ByteString-Builder.html#t:Builder">Builder</a>, a)</dt><dd class="doc"><p>This is the low-level way to run the HTML transformer,
finally returning an element builder and a value. You can
pass <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Monoid.html#v:mempty">mempty</a></code> for this argument for a top-level call. See
<code><a href="Lucid-Base.html#v:evalHtmlT">evalHtmlT</a></code> and <code><a href="Lucid-Base.html#v:execHtmlT">execHtmlT</a></code> for easier to use functions.</p></dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:HtmlT" class="caption collapser" onclick="toggleSection('i:HtmlT')">Instances</p><div id="section.i:HtmlT" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/transformers-0.4.2.0/Control-Monad-Trans-Class.html#t:MonadTrans">MonadTrans</a> <a href="Lucid-Base.html#t:HtmlT">HtmlT</a></span> <a href="src/Lucid-Base.html#line-103" class="link">Source</a></td><td class="doc"><p>Used for <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/transformers-0.4.2.0/Control-Monad-Trans-Class.html#v:lift">lift</a></code>.</p></td></tr><tr><td class="src clearfix"><span class="inst-left">(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m, (~) * a ()) => <a href="Lucid-Base.html#t:TermRaw">TermRaw</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> (<a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m a)</span> <a href="src/Lucid-Base.html#line-210" class="link">Source</a></td><td class="doc"><p>Given children immediately, just use that and expect no
attributes.</p></td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> (<a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m)</span> <a href="src/Lucid-Base.html#line-95" class="link">Source</a></td><td class="doc"><p>Basically acts like Writer.</p></td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Functor.html#t:Functor">Functor</a> (<a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m)</span> <a href="src/Lucid-Base.html#line-91" class="link">Source</a></td><td class="doc"><p>Just re-uses Monad.</p></td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Applicative.html#t:Applicative">Applicative</a> (<a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m)</span> <a href="src/Lucid-Base.html#line-86" class="link">Source</a></td><td class="doc"><p>Based on the monad instance.</p></td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/transformers-0.4.2.0/Control-Monad-IO-Class.html#t:MonadIO">MonadIO</a> m => <a href="file:///usr/share/doc/ghc-doc/html/libraries/transformers-0.4.2.0/Control-Monad-IO-Class.html#t:MonadIO">MonadIO</a> (<a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m)</span> <a href="src/Lucid-Base.html#line-109" class="link">Source</a></td><td class="doc"><p>If you want to use IO in your HTML generation.</p></td></tr><tr><td class="src clearfix"><span class="inst-left">(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m, <a href="Lucid-Base.html#t:ToHtml">ToHtml</a> f, (~) * a ()) => <a href="Lucid-Base.html#t:TermRaw">TermRaw</a> [<a href="Lucid-Base.html#t:Attribute">Attribute</a>] (f -> <a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m a)</span> <a href="src/Lucid-Base.html#line-205" class="link">Source</a></td><td class="doc"><p>Given attributes, expect more child input.</p></td></tr><tr><td class="src clearfix"><span class="inst-left">(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m, (~) * f (<a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m a)) => <a href="Lucid-Base.html#t:Term">Term</a> [<a href="Lucid-Base.html#t:Attribute">Attribute</a>] (f -> <a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m a)</span> <a href="src/Lucid-Base.html#line-175" class="link">Source</a></td><td class="doc"><p>Given attributes, expect more child input.</p></td></tr><tr><td class="src clearfix"><span class="inst-left">(~) (* -> *) m <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Functor-Identity.html#t:Identity">Identity</a> => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Text-Show.html#t:Show">Show</a> (<a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m a)</span> <a href="src/Lucid-Base.html#line-118" class="link">Source</a></td><td class="doc"><p>Just calls <code><a href="Lucid-Base.html#v:renderText">renderText</a></code>.</p></td></tr><tr><td class="src clearfix"><span class="inst-left">(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m, (~) * a ()) => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:IsString">IsString</a> (<a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m a)</span> <a href="src/Lucid-Base.html#line-114" class="link">Source</a></td><td class="doc"><p>We pack it via string. Could possibly encode straight into a
builder. That might be faster.</p></td></tr><tr><td class="src clearfix"><span class="inst-left">((~) * a (), <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m) => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Monoid.html#t:Monoid">Monoid</a> (<a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m a)</span> <a href="src/Lucid-Base.html#line-81" class="link">Source</a></td><td class="doc"><p>Monoid is right-associative, a la the <code><a href="file:///usr/share/doc/libghc-blaze-builder-doc/html/Blaze-ByteString-Builder.html#t:Builder">Builder</a></code> in it.</p></td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="Lucid-Base.html#t:With">With</a> (<a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m a -> <a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m a)</span> <a href="src/Lucid-Base.html#line-238" class="link">Source</a></td><td class="doc"><p>For the contentful elements: <code><a href="Lucid-Html5.html#v:div_">div_</a></code></p></td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="Lucid-Base.html#t:With">With</a> (<a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m a)</span> <a href="src/Lucid-Base.html#line-228" class="link">Source</a></td><td class="doc"><p>For the contentless elements: <code><a href="Lucid-Html5.html#v:br_">br_</a></code></p></td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="Lucid-Base.html#t:Term">Term</a> (<a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m a) (<a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m a)</span> <a href="src/Lucid-Base.html#line-180" class="link">Source</a></td><td class="doc"><p>Given children immediately, just use that and expect no
attributes.</p></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Attribute" class="def">Attribute</a> <a href="src/Lucid-Base.html#Attribute" class="link">Source</a></p><div class="doc"><p>A simple attribute. Don't use the constructor, use <code><a href="Lucid-Base.html#v:makeAttribute">makeAttribute</a></code>.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Attribute" class="def">Attribute</a> !<a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> !<a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:Attribute" class="caption collapser" onclick="toggleSection('i:Attribute')">Instances</p><div id="section.i:Attribute" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Eq.html#t:Eq">Eq</a> <a href="Lucid-Base.html#t:Attribute">Attribute</a></span> <a href="src/Lucid-Base.html#line-58" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Text-Show.html#t:Show">Show</a> <a href="Lucid-Base.html#t:Attribute">Attribute</a></span> <a href="src/Lucid-Base.html#line-58" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-hashable-doc/html/Data-Hashable.html#t:Hashable">Hashable</a> <a href="Lucid-Base.html#t:Attribute">Attribute</a></span> <a href="src/Lucid-Base.html#line-60" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="Lucid-Base.html#t:TermRaw">TermRaw</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> <a href="Lucid-Base.html#t:Attribute">Attribute</a></span> <a href="src/Lucid-Base.html#line-215" class="link">Source</a></td><td class="doc"><p>Some termRaws (like <code><a href="Lucid-Html5.html#v:style_">style_</a></code>, <code><a href="Lucid-Html5.html#v:title_">title_</a></code>) can be used for
attributes as well as elements.</p></td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="Lucid-Base.html#t:Term">Term</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> <a href="Lucid-Base.html#t:Attribute">Attribute</a></span> <a href="src/Lucid-Base.html#line-185" class="link">Source</a></td><td class="doc"><p>Some terms (like <code><a href="Lucid-Html5.html#v:style_">style_</a></code>, <code><a href="Lucid-Html5.html#v:title_">title_</a></code>) can be used for
attributes as well as elements.</p></td></tr><tr><td class="src clearfix"><span class="inst-left">(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m, <a href="Lucid-Base.html#t:ToHtml">ToHtml</a> f, (~) * a ()) => <a href="Lucid-Base.html#t:TermRaw">TermRaw</a> [<a href="Lucid-Base.html#t:Attribute">Attribute</a>] (f -> <a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m a)</span> <a href="src/Lucid-Base.html#line-205" class="link">Source</a></td><td class="doc"><p>Given attributes, expect more child input.</p></td></tr><tr><td class="src clearfix"><span class="inst-left">(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m, (~) * f (<a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m a)) => <a href="Lucid-Base.html#t:Term">Term</a> [<a href="Lucid-Base.html#t:Attribute">Attribute</a>] (f -> <a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m a)</span> <a href="src/Lucid-Base.html#line-175" class="link">Source</a></td><td class="doc"><p>Given attributes, expect more child input.</p></td></tr></table></div></div></div><h1 id="g:5">Classes</h1><div class="top"><p class="src"><span class="keyword">class</span> <a name="t:Term" class="def">Term</a> arg result | result -> arg <span class="keyword">where</span> <a href="src/Lucid-Base.html#Term" class="link">Source</a></p><div class="doc"><p>Used to construct HTML terms.</p><p>Simplest use: p_ = term "p" yields <code><a href="Lucid-Html5.html#v:p_">p_</a></code>.</p><p>Very overloaded for three cases:</p><ul><li>The first case is the basic <code>arg</code> of <code>[(Text,Text)]</code> which will
return a function that wants children.</li><li>The second is an <code>arg</code> which is <code>HtmlT m ()</code>, in which case the
term accepts no attributes and just the children are used for the
element.</li><li>Finally, this is also used for overloaded attributes, like
<code><a href="Lucid-Html5.html#v:style_">style_</a></code> or <code><a href="Lucid-Html5.html#v:title_">title_</a></code>. If a return type of <code>(Text,Text)</code> is inferred
then an attribute will be made.</li></ul><p>The instances look intimidating but actually the constraints make
it very general so that type inference works well even in the
presence of things like <code>OverloadedLists</code> and such.</p></div><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="Lucid-Base.html#v:termWith">termWith</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:term" class="def">term</a> <a href="src/Lucid-Base.html#term" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></td><td class="doc"><p>Name of the element or attribute.</p></td></tr><tr><td class="src">-> arg</td><td class="doc"><p>Either an attribute list or children.</p></td></tr><tr><td class="src">-> result</td><td class="doc"><p>Result: either an element or an attribute.</p></td></tr></table></div><div class="doc"><p>Used for constructing elements e.g. <code>term "p"</code> yields <code><a href="Lucid-Html5.html#v:p_">p_</a></code>.</p></div><p class="src"><a name="v:termWith" class="def">termWith</a> <a href="src/Lucid-Base.html#termWith" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></td><td class="doc"><p>Name.</p></td></tr><tr><td class="src">-> [<a href="Lucid-Base.html#t:Attribute">Attribute</a>]</td><td class="doc"><p>Attribute transformer.</p></td></tr><tr><td class="src">-> arg</td><td class="doc"><p>Some argument.</p></td></tr><tr><td class="src">-> result</td><td class="doc"><p>Result: either an element or an attribute.</p></td></tr></table></div><div class="doc"><p>Use this if you want to make an element which inserts some
pre-prepared attributes into the element.</p></div></div><div class="subs instances"><p id="control.i:Term" class="caption collapser" onclick="toggleSection('i:Term')">Instances</p><div id="section.i:Term" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="Lucid-Base.html#t:Term">Term</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> <a href="Lucid-Base.html#t:Attribute">Attribute</a></span> <a href="src/Lucid-Base.html#line-185" class="link">Source</a></td><td class="doc"><p>Some terms (like <code><a href="Lucid-Html5.html#v:style_">style_</a></code>, <code><a href="Lucid-Html5.html#v:title_">title_</a></code>) can be used for
attributes as well as elements.</p></td></tr><tr><td class="src clearfix"><span class="inst-left">(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m, (~) * f (<a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m a)) => <a href="Lucid-Base.html#t:Term">Term</a> [<a href="Lucid-Base.html#t:Attribute">Attribute</a>] (f -> <a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m a)</span> <a href="src/Lucid-Base.html#line-175" class="link">Source</a></td><td class="doc"><p>Given attributes, expect more child input.</p></td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="Lucid-Base.html#t:Term">Term</a> (<a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m a) (<a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m a)</span> <a href="src/Lucid-Base.html#line-180" class="link">Source</a></td><td class="doc"><p>Given children immediately, just use that and expect no
attributes.</p></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a name="t:TermRaw" class="def">TermRaw</a> arg result | result -> arg <span class="keyword">where</span> <a href="src/Lucid-Base.html#TermRaw" class="link">Source</a></p><div class="doc"><p>Same as the <code><a href="Lucid-Base.html#t:Term">Term</a></code> class, but will not HTML escape its
children. Useful for elements like <code><a href="Lucid-Html5.html#v:style_">style_</a></code> or
<code><a href="Lucid-Html5.html#v:script_">script_</a></code>.</p></div><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="Lucid-Base.html#v:termRawWith">termRawWith</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:termRaw" class="def">termRaw</a> <a href="src/Lucid-Base.html#termRaw" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></td><td class="doc"><p>Name of the element or attribute.</p></td></tr><tr><td class="src">-> arg</td><td class="doc"><p>Either an attribute list or children.</p></td></tr><tr><td class="src">-> result</td><td class="doc"><p>Result: either an element or an attribute.</p></td></tr></table></div><div class="doc"><p>Used for constructing elements e.g. <code>termRaw "p"</code> yields <code><a href="Lucid-Html5.html#v:p_">p_</a></code>.</p></div><p class="src"><a name="v:termRawWith" class="def">termRawWith</a> <a href="src/Lucid-Base.html#termRawWith" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></td><td class="doc"><p>Name.</p></td></tr><tr><td class="src">-> [<a href="Lucid-Base.html#t:Attribute">Attribute</a>]</td><td class="doc"><p>Attribute transformer.</p></td></tr><tr><td class="src">-> arg</td><td class="doc"><p>Some argument.</p></td></tr><tr><td class="src">-> result</td><td class="doc"><p>Result: either an element or an attribute.</p></td></tr></table></div><div class="doc"><p>Use this if you want to make an element which inserts some
pre-prepared attributes into the element.</p></div></div><div class="subs instances"><p id="control.i:TermRaw" class="caption collapser" onclick="toggleSection('i:TermRaw')">Instances</p><div id="section.i:TermRaw" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="Lucid-Base.html#t:TermRaw">TermRaw</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> <a href="Lucid-Base.html#t:Attribute">Attribute</a></span> <a href="src/Lucid-Base.html#line-215" class="link">Source</a></td><td class="doc"><p>Some termRaws (like <code><a href="Lucid-Html5.html#v:style_">style_</a></code>, <code><a href="Lucid-Html5.html#v:title_">title_</a></code>) can be used for
attributes as well as elements.</p></td></tr><tr><td class="src clearfix"><span class="inst-left">(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m, (~) * a ()) => <a href="Lucid-Base.html#t:TermRaw">TermRaw</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> (<a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m a)</span> <a href="src/Lucid-Base.html#line-210" class="link">Source</a></td><td class="doc"><p>Given children immediately, just use that and expect no
attributes.</p></td></tr><tr><td class="src clearfix"><span class="inst-left">(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m, <a href="Lucid-Base.html#t:ToHtml">ToHtml</a> f, (~) * a ()) => <a href="Lucid-Base.html#t:TermRaw">TermRaw</a> [<a href="Lucid-Base.html#t:Attribute">Attribute</a>] (f -> <a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m a)</span> <a href="src/Lucid-Base.html#line-205" class="link">Source</a></td><td class="doc"><p>Given attributes, expect more child input.</p></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a name="t:ToHtml" class="def">ToHtml</a> a <span class="keyword">where</span> <a href="src/Lucid-Base.html#ToHtml" class="link">Source</a></p><div class="doc"><p>Can be converted to HTML.</p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:toHtml" class="def">toHtml</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m => a -> <a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m () <a href="src/Lucid-Base.html#toHtml" class="link">Source</a></p><p class="src"><a name="v:toHtmlRaw" class="def">toHtmlRaw</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m => a -> <a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m () <a href="src/Lucid-Base.html#toHtmlRaw" class="link">Source</a></p></div><div class="subs instances"><p id="control.i:ToHtml" class="caption collapser" onclick="toggleSection('i:ToHtml')">Instances</p><div id="section.i:ToHtml" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="Lucid-Base.html#t:ToHtml">ToHtml</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></span> <a href="src/Lucid-Base.html#line-126" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="Lucid-Base.html#t:ToHtml">ToHtml</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a></span> <a href="src/Lucid-Base.html#line-134" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="Lucid-Base.html#t:ToHtml">ToHtml</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></span> <a href="src/Lucid-Base.html#line-130" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a name="t:With" class="def">With</a> a <span class="keyword">where</span> <a href="src/Lucid-Base.html#With" class="link">Source</a></p><div class="doc"><p>With an element use these attributes. An overloaded way of adding
attributes either to an element accepting attributes-and-children
or one that just accepts attributes. See the two instances.</p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:with" class="def">with</a> <a href="src/Lucid-Base.html#with" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: a</td><td class="doc"><p>Some element, either <code>Html a</code> or <code>Html a -> Html a</code>.</p></td></tr><tr><td class="src">-> [<a href="Lucid-Base.html#t:Attribute">Attribute</a>]</td><td class="doc empty"> </td></tr><tr><td class="src">-> a</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>With the given element(s), use the given attributes.</p></div></div><div class="subs instances"><p id="control.i:With" class="caption collapser" onclick="toggleSection('i:With')">Instances</p><div id="section.i:With" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="Lucid-Base.html#t:With">With</a> (<a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m a -> <a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m a)</span> <a href="src/Lucid-Base.html#line-238" class="link">Source</a></td><td class="doc"><p>For the contentful elements: <code><a href="Lucid-Html5.html#v:div_">div_</a></code></p></td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="Lucid-Base.html#t:With">With</a> (<a href="Lucid-Base.html#t:HtmlT">HtmlT</a> m a)</span> <a href="src/Lucid-Base.html#line-228" class="link">Source</a></td><td class="doc"><p>For the contentless elements: <code><a href="Lucid-Html5.html#v:br_">br_</a></code></p></td></tr></table></div></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.1</p></div></body></html>
|