/usr/share/doc/libghc-blaze-markup-doc/html/Text-Blaze.html is in libghc-blaze-markup-doc 0.8.0.0-1.
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 | <!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>Text.Blaze</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="file:///usr/share/javascript/mathjax/MathJax.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Text-Blaze.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Text-Blaze.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">blaze-markup-0.8.0.0: A blazingly fast markup combinator library for Haskell</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">Text.Blaze</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Important types.</a></li><li><a href="#g:2">Creating attributes.</a></li><li><a href="#g:3">Converting values to Markup.</a></li><li><a href="#g:4">Comments</a></li><li><a href="#g:5">Creating tags.</a></li><li><a href="#g:6">Converting values to attribute values.</a></li><li><a href="#g:7">Setting attributes</a></li><li><a href="#g:8">Modifiying Markup trees</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>BlazeMarkup is a markup combinator library. It provides a way to embed
markup languages like HTML and SVG in Haskell in an efficient and convenient
way, with a light-weight syntax.</p><p>To use the library, one needs to import a set of combinators. For example,
you can use HTML 4 Strict from BlazeHtml package.</p><pre>{-# LANGUAGE OverloadedStrings #-}
import Prelude hiding (head, id, div)
import Text.Blaze.Html4.Strict hiding (map)
import Text.Blaze.Html4.Strict.Attributes hiding (title)</pre><p>To render the page later on, you need a so called Renderer. The recommended
renderer is an UTF-8 renderer which produces a lazy bytestring.</p><pre>import Text.Blaze.Renderer.Utf8 (renderMarkup)</pre><p>Now, you can describe pages using the imported combinators.</p><pre>page1 :: Markup
page1 = html $ do
head $ do
title "Introduction page."
link ! rel "stylesheet" ! type_ "text/css" ! href "screen.css"
body $ do
div ! id "header" $ "Syntax"
p "This is an example of BlazeMarkup syntax."
ul $ mapM_ (li . toMarkup . show) [1, 2, 3]</pre><p>The resulting HTML can now be extracted using:</p><pre>renderMarkup page1</pre></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"><span class="keyword">type</span> <a href="#t:Markup">Markup</a> = <a href="Text-Blaze-Internal.html#t:MarkupM">MarkupM</a> ()</li><li class="src short"><span class="keyword">data</span> <a href="#t:Tag">Tag</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:Attribute">Attribute</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:AttributeValue">AttributeValue</a></li><li class="src short"><a href="#v:dataAttribute">dataAttribute</a> :: <a href="Text-Blaze.html#t:Tag">Tag</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> -> <a href="Text-Blaze.html#t:Attribute">Attribute</a></li><li class="src short"><a href="#v:customAttribute">customAttribute</a> :: <a href="Text-Blaze.html#t:Tag">Tag</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> -> <a href="Text-Blaze.html#t:Attribute">Attribute</a></li><li class="src short"><span class="keyword">class</span> <a href="#t:ToMarkup">ToMarkup</a> a <span class="keyword">where</span><ul class="subs"></ul></li><li class="src short"><a href="#v:text">text</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a></li><li class="src short"><a href="#v:preEscapedText">preEscapedText</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a></li><li class="src short"><a href="#v:lazyText">lazyText</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a></li><li class="src short"><a href="#v:preEscapedLazyText">preEscapedLazyText</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a></li><li class="src short"><a href="#v:string">string</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a></li><li class="src short"><a href="#v:preEscapedString">preEscapedString</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a></li><li class="src short"><a href="#v:unsafeByteString">unsafeByteString</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a></li><li class="src short"><a href="#v:unsafeLazyByteString">unsafeLazyByteString</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a></li><li class="src short"><a href="#v:textComment">textComment</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a></li><li class="src short"><a href="#v:lazyTextComment">lazyTextComment</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a></li><li class="src short"><a href="#v:stringComment">stringComment</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a></li><li class="src short"><a href="#v:unsafeByteStringComment">unsafeByteStringComment</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a></li><li class="src short"><a href="#v:unsafeLazyByteStringComment">unsafeLazyByteStringComment</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a></li><li class="src short"><a href="#v:textTag">textTag</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> <a href="Text-Blaze.html#t:Tag">Tag</a></li><li class="src short"><a href="#v:stringTag">stringTag</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -> <a href="Text-Blaze.html#t:Tag">Tag</a></li><li class="src short"><span class="keyword">class</span> <a href="#t:ToValue">ToValue</a> a <span class="keyword">where</span><ul class="subs"></ul></li><li class="src short"><a href="#v:textValue">textValue</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a></li><li class="src short"><a href="#v:preEscapedTextValue">preEscapedTextValue</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a></li><li class="src short"><a href="#v:lazyTextValue">lazyTextValue</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a></li><li class="src short"><a href="#v:preEscapedLazyTextValue">preEscapedLazyTextValue</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a></li><li class="src short"><a href="#v:stringValue">stringValue</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a></li><li class="src short"><a href="#v:preEscapedStringValue">preEscapedStringValue</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a></li><li class="src short"><a href="#v:unsafeByteStringValue">unsafeByteStringValue</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a></li><li class="src short"><a href="#v:unsafeLazyByteStringValue">unsafeLazyByteStringValue</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a></li><li class="src short"><a href="#v:-33-">(!)</a> :: <a href="Text-Blaze-Internal.html#t:Attributable">Attributable</a> h => h -> <a href="Text-Blaze.html#t:Attribute">Attribute</a> -> h</li><li class="src short"><a href="#v:-33--63-">(!?)</a> :: <a href="Text-Blaze-Internal.html#t:Attributable">Attributable</a> h => h -> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a>, <a href="Text-Blaze.html#t:Attribute">Attribute</a>) -> h</li><li class="src short"><a href="#v:contents">contents</a> :: <a href="Text-Blaze-Internal.html#t:MarkupM">MarkupM</a> a -> <a href="Text-Blaze-Internal.html#t:MarkupM">MarkupM</a> a</li></ul></div><div id="interface"><h1 id="g:1">Important types.</h1><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:Markup" class="def">Markup</a> = <a href="Text-Blaze-Internal.html#t:MarkupM">MarkupM</a> () <a href="src/Text-Blaze-Internal.html#Markup" class="link">Source</a> <a href="#t:Markup" class="selflink">#</a></p><div class="doc"><p>Simplification of the <code><a href="Text-Blaze-Internal.html#t:MarkupM">MarkupM</a></code> datatype.</p></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:Tag" class="def">Tag</a> <a href="src/Text-Blaze-Internal.html#Tag" class="link">Source</a> <a href="#t:Tag" class="selflink">#</a></p><div class="doc"><p>Type for an HTML tag. This can be seen as an internal string type used by
BlazeMarkup.</p></div><div class="subs instances"><p id="control.i:Tag" class="caption collapser" onclick="toggleSection('i:Tag')">Instances</p><div id="section.i:Tag" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Tag:IsString:1" class="instance expander" onclick="toggleSection('i:id:Tag:IsString:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:IsString">IsString</a> <a href="Text-Blaze.html#t:Tag">Tag</a></span> <a href="src/Text-Blaze-Internal.html#line-239" class="link">Source</a> <a href="#t:Tag" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Tag:IsString:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fromString">fromString</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -> <a href="Text-Blaze.html#t:Tag">Tag</a> <a href="#v:fromString" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:Attribute" class="def">Attribute</a> <a href="src/Text-Blaze-Internal.html#Attribute" class="link">Source</a> <a href="#t:Attribute" class="selflink">#</a></p><div class="doc"><p>Type for an attribute.</p></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"><span id="control.i:id:Attribute:Monoid:1" class="instance expander" onclick="toggleSection('i:id:Attribute:Monoid:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Monoid.html#t:Monoid">Monoid</a> <a href="Text-Blaze.html#t:Attribute">Attribute</a></span> <a href="src/Text-Blaze-Internal.html#line-245" class="link">Source</a> <a href="#t:Attribute" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Attribute:Monoid:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:mempty">mempty</a> :: <a href="Text-Blaze.html#t:Attribute">Attribute</a> <a href="#v:mempty" class="selflink">#</a></p><p class="src"><a href="#v:mappend">mappend</a> :: <a href="Text-Blaze.html#t:Attribute">Attribute</a> -> <a href="Text-Blaze.html#t:Attribute">Attribute</a> -> <a href="Text-Blaze.html#t:Attribute">Attribute</a> <a href="#v:mappend" class="selflink">#</a></p><p class="src"><a href="#v:mconcat">mconcat</a> :: [<a href="Text-Blaze.html#t:Attribute">Attribute</a>] -> <a href="Text-Blaze.html#t:Attribute">Attribute</a> <a href="#v:mconcat" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:AttributeValue" class="def">AttributeValue</a> <a href="src/Text-Blaze-Internal.html#AttributeValue" class="link">Source</a> <a href="#t:AttributeValue" class="selflink">#</a></p><div class="doc"><p>The type for the value part of an attribute.</p></div><div class="subs instances"><p id="control.i:AttributeValue" class="caption collapser" onclick="toggleSection('i:AttributeValue')">Instances</p><div id="section.i:AttributeValue" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:AttributeValue:IsString:1" class="instance expander" onclick="toggleSection('i:id:AttributeValue:IsString:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:IsString">IsString</a> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a></span> <a href="src/Text-Blaze-Internal.html#line-252" class="link">Source</a> <a href="#t:AttributeValue" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:AttributeValue:IsString:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fromString">fromString</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="#v:fromString" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:AttributeValue:Monoid:2" class="instance expander" onclick="toggleSection('i:id:AttributeValue:Monoid:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Monoid.html#t:Monoid">Monoid</a> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a></span> <a href="src/Text-Blaze-Internal.html#line-252" class="link">Source</a> <a href="#t:AttributeValue" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:AttributeValue:Monoid:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:mempty">mempty</a> :: <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="#v:mempty" class="selflink">#</a></p><p class="src"><a href="#v:mappend">mappend</a> :: <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="#v:mappend" class="selflink">#</a></p><p class="src"><a href="#v:mconcat">mconcat</a> :: [<a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a>] -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="#v:mconcat" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:AttributeValue:ToValue:3" class="instance expander" onclick="toggleSection('i:id:AttributeValue:ToValue:3')"></span> <a href="Text-Blaze.html#t:ToValue">ToValue</a> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a></span> <a href="src/Text-Blaze.html#line-202" class="link">Source</a> <a href="#t:ToValue" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:AttributeValue:ToValue:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toValue">toValue</a> :: <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="src/Text-Blaze.html#toValue" class="link">Source</a> <a href="#v:toValue" class="selflink">#</a></p><p class="src"><a href="#v:preEscapedToValue">preEscapedToValue</a> :: <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="src/Text-Blaze.html#preEscapedToValue" class="link">Source</a> <a href="#v:preEscapedToValue" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><h1 id="g:2">Creating attributes.</h1><div class="top"><p class="src"><a id="v:dataAttribute" class="def">dataAttribute</a> <a href="src/Text-Blaze-Internal.html#dataAttribute" class="link">Source</a> <a href="#v:dataAttribute" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Text-Blaze.html#t:Tag">Tag</a></td><td class="doc"><p>Name of the attribute.</p></td></tr><tr><td class="src">-> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a></td><td class="doc"><p>Value for the attribute.</p></td></tr><tr><td class="src">-> <a href="Text-Blaze.html#t:Attribute">Attribute</a></td><td class="doc"><p>Resulting HTML attribute.</p></td></tr></table></div><div class="doc"><p>From HTML 5 onwards, the user is able to specify custom data attributes.</p><p>An example:</p><pre><p data-foo="bar">Hello.</p></pre><p>We support this in BlazeMarkup using this function. The above fragment could
be described using BlazeMarkup with:</p><pre>p ! dataAttribute "foo" "bar" $ "Hello."</pre></div></div><div class="top"><p class="src"><a id="v:customAttribute" class="def">customAttribute</a> <a href="src/Text-Blaze-Internal.html#customAttribute" class="link">Source</a> <a href="#v:customAttribute" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Text-Blaze.html#t:Tag">Tag</a></td><td class="doc"><p>Name of the attribute</p></td></tr><tr><td class="src">-> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a></td><td class="doc"><p>Value for the attribute</p></td></tr><tr><td class="src">-> <a href="Text-Blaze.html#t:Attribute">Attribute</a></td><td class="doc"><p>Resulting HTML attribtue</p></td></tr></table></div><div class="doc"><p>Create a custom attribute. This is not specified in the HTML spec, but some
JavaScript libraries rely on it.</p><p>An example:</p><pre><select dojoType="select">foo</select></pre><p>Can be produced using:</p><pre>select ! customAttribute "dojoType" "select" $ "foo"</pre></div></div><h1 id="g:3">Converting values to Markup.</h1><div class="top"><p class="src"><span class="keyword">class</span> <a id="t:ToMarkup" class="def">ToMarkup</a> a <span class="keyword">where</span> <a href="src/Text-Blaze.html#ToMarkup" class="link">Source</a> <a href="#t:ToMarkup" class="selflink">#</a></p><div class="doc"><p>Class allowing us to use a single function for Markup values</p></div><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="Text-Blaze.html#v:toMarkup">toMarkup</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:toMarkup" class="def">toMarkup</a> :: a -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze.html#toMarkup" class="link">Source</a> <a href="#v:toMarkup" class="selflink">#</a></p><div class="doc"><p>Convert a value to Markup.</p></div><p class="src"><a id="v:preEscapedToMarkup" class="def">preEscapedToMarkup</a> :: a -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze.html#preEscapedToMarkup" class="link">Source</a> <a href="#v:preEscapedToMarkup" class="selflink">#</a></p><div class="doc"><p>Convert a value to Markup without escaping</p></div></div><div class="subs instances"><p id="control.i:ToMarkup" class="caption collapser" onclick="toggleSection('i:ToMarkup')">Instances</p><div id="section.i:ToMarkup" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ToMarkup:ToMarkup:1" class="instance expander" onclick="toggleSection('i:ic:ToMarkup:ToMarkup:1')"></span> <a href="Text-Blaze.html#t:ToMarkup">ToMarkup</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a></span> <a href="src/Text-Blaze.html#line-161" class="link">Source</a> <a href="#t:ToMarkup" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ToMarkup:ToMarkup:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toMarkup">toMarkup</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze.html#toMarkup" class="link">Source</a> <a href="#v:toMarkup" class="selflink">#</a></p><p class="src"><a href="#v:preEscapedToMarkup">preEscapedToMarkup</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze.html#preEscapedToMarkup" class="link">Source</a> <a href="#v:preEscapedToMarkup" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ToMarkup:ToMarkup:2" class="instance expander" onclick="toggleSection('i:ic:ToMarkup:ToMarkup:2')"></span> <a href="Text-Blaze.html#t:ToMarkup">ToMarkup</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Char.html#t:Char">Char</a></span> <a href="src/Text-Blaze.html#line-157" class="link">Source</a> <a href="#t:ToMarkup" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ToMarkup:ToMarkup:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toMarkup">toMarkup</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Char.html#t:Char">Char</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze.html#toMarkup" class="link">Source</a> <a href="#v:toMarkup" class="selflink">#</a></p><p class="src"><a href="#v:preEscapedToMarkup">preEscapedToMarkup</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Char.html#t:Char">Char</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze.html#preEscapedToMarkup" class="link">Source</a> <a href="#v:preEscapedToMarkup" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ToMarkup:ToMarkup:3" class="instance expander" onclick="toggleSection('i:ic:ToMarkup:ToMarkup:3')"></span> <a href="Text-Blaze.html#t:ToMarkup">ToMarkup</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a></span> <a href="src/Text-Blaze.html#line-173" class="link">Source</a> <a href="#t:ToMarkup" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ToMarkup:ToMarkup:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toMarkup">toMarkup</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze.html#toMarkup" class="link">Source</a> <a href="#v:toMarkup" class="selflink">#</a></p><p class="src"><a href="#v:preEscapedToMarkup">preEscapedToMarkup</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze.html#preEscapedToMarkup" class="link">Source</a> <a href="#v:preEscapedToMarkup" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ToMarkup:ToMarkup:4" class="instance expander" onclick="toggleSection('i:ic:ToMarkup:ToMarkup:4')"></span> <a href="Text-Blaze.html#t:ToMarkup">ToMarkup</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Float">Float</a></span> <a href="src/Text-Blaze.html#line-169" class="link">Source</a> <a href="#t:ToMarkup" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ToMarkup:ToMarkup:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toMarkup">toMarkup</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Float">Float</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze.html#toMarkup" class="link">Source</a> <a href="#v:toMarkup" class="selflink">#</a></p><p class="src"><a href="#v:preEscapedToMarkup">preEscapedToMarkup</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Float">Float</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze.html#preEscapedToMarkup" class="link">Source</a> <a href="#v:preEscapedToMarkup" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ToMarkup:ToMarkup:5" class="instance expander" onclick="toggleSection('i:ic:ToMarkup:ToMarkup:5')"></span> <a href="Text-Blaze.html#t:ToMarkup">ToMarkup</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></span> <a href="src/Text-Blaze.html#line-145" class="link">Source</a> <a href="#t:ToMarkup" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ToMarkup:ToMarkup:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toMarkup">toMarkup</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze.html#toMarkup" class="link">Source</a> <a href="#v:toMarkup" class="selflink">#</a></p><p class="src"><a href="#v:preEscapedToMarkup">preEscapedToMarkup</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze.html#preEscapedToMarkup" class="link">Source</a> <a href="#v:preEscapedToMarkup" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ToMarkup:ToMarkup:6" class="instance expander" onclick="toggleSection('i:ic:ToMarkup:ToMarkup:6')"></span> <a href="Text-Blaze.html#t:ToMarkup">ToMarkup</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int32">Int32</a></span> <a href="src/Text-Blaze.html#line-149" class="link">Source</a> <a href="#t:ToMarkup" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ToMarkup:ToMarkup:6" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toMarkup">toMarkup</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int32">Int32</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze.html#toMarkup" class="link">Source</a> <a href="#v:toMarkup" class="selflink">#</a></p><p class="src"><a href="#v:preEscapedToMarkup">preEscapedToMarkup</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int32">Int32</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze.html#preEscapedToMarkup" class="link">Source</a> <a href="#v:preEscapedToMarkup" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ToMarkup:ToMarkup:7" class="instance expander" onclick="toggleSection('i:ic:ToMarkup:ToMarkup:7')"></span> <a href="Text-Blaze.html#t:ToMarkup">ToMarkup</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int64">Int64</a></span> <a href="src/Text-Blaze.html#line-153" class="link">Source</a> <a href="#t:ToMarkup" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ToMarkup:ToMarkup:7" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toMarkup">toMarkup</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int64">Int64</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze.html#toMarkup" class="link">Source</a> <a href="#v:toMarkup" class="selflink">#</a></p><p class="src"><a href="#v:preEscapedToMarkup">preEscapedToMarkup</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int64">Int64</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze.html#preEscapedToMarkup" class="link">Source</a> <a href="#v:preEscapedToMarkup" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ToMarkup:ToMarkup:8" class="instance expander" onclick="toggleSection('i:ic:ToMarkup:ToMarkup:8')"></span> <a href="Text-Blaze.html#t:ToMarkup">ToMarkup</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Integer">Integer</a></span> <a href="src/Text-Blaze.html#line-165" class="link">Source</a> <a href="#t:ToMarkup" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ToMarkup:ToMarkup:8" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toMarkup">toMarkup</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Integer">Integer</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze.html#toMarkup" class="link">Source</a> <a href="#v:toMarkup" class="selflink">#</a></p><p class="src"><a href="#v:preEscapedToMarkup">preEscapedToMarkup</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Integer">Integer</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze.html#preEscapedToMarkup" class="link">Source</a> <a href="#v:preEscapedToMarkup" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ToMarkup:ToMarkup:9" class="instance expander" onclick="toggleSection('i:ic:ToMarkup:ToMarkup:9')"></span> <a href="Text-Blaze.html#t:ToMarkup">ToMarkup</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Word.html#t:Word">Word</a></span> <a href="src/Text-Blaze.html#line-177" class="link">Source</a> <a href="#t:ToMarkup" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ToMarkup:ToMarkup:9" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toMarkup">toMarkup</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Word.html#t:Word">Word</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze.html#toMarkup" class="link">Source</a> <a href="#v:toMarkup" class="selflink">#</a></p><p class="src"><a href="#v:preEscapedToMarkup">preEscapedToMarkup</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Word.html#t:Word">Word</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze.html#preEscapedToMarkup" class="link">Source</a> <a href="#v:preEscapedToMarkup" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ToMarkup:ToMarkup:10" class="instance expander" onclick="toggleSection('i:ic:ToMarkup:ToMarkup:10')"></span> <a href="Text-Blaze.html#t:ToMarkup">ToMarkup</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Word.html#t:Word32">Word32</a></span> <a href="src/Text-Blaze.html#line-181" class="link">Source</a> <a href="#t:ToMarkup" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ToMarkup:ToMarkup:10" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toMarkup">toMarkup</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Word.html#t:Word32">Word32</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze.html#toMarkup" class="link">Source</a> <a href="#v:toMarkup" class="selflink">#</a></p><p class="src"><a href="#v:preEscapedToMarkup">preEscapedToMarkup</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Word.html#t:Word32">Word32</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze.html#preEscapedToMarkup" class="link">Source</a> <a href="#v:preEscapedToMarkup" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ToMarkup:ToMarkup:11" class="instance expander" onclick="toggleSection('i:ic:ToMarkup:ToMarkup:11')"></span> <a href="Text-Blaze.html#t:ToMarkup">ToMarkup</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Word.html#t:Word64">Word64</a></span> <a href="src/Text-Blaze.html#line-185" class="link">Source</a> <a href="#t:ToMarkup" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ToMarkup:ToMarkup:11" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toMarkup">toMarkup</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Word.html#t:Word64">Word64</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze.html#toMarkup" class="link">Source</a> <a href="#v:toMarkup" class="selflink">#</a></p><p class="src"><a href="#v:preEscapedToMarkup">preEscapedToMarkup</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Word.html#t:Word64">Word64</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze.html#preEscapedToMarkup" class="link">Source</a> <a href="#v:preEscapedToMarkup" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ToMarkup:ToMarkup:12" class="instance expander" onclick="toggleSection('i:ic:ToMarkup:ToMarkup:12')"></span> <a href="Text-Blaze.html#t:ToMarkup">ToMarkup</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></span> <a href="src/Text-Blaze.html#line-139" class="link">Source</a> <a href="#t:ToMarkup" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ToMarkup:ToMarkup:12" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toMarkup">toMarkup</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze.html#toMarkup" class="link">Source</a> <a href="#v:toMarkup" class="selflink">#</a></p><p class="src"><a href="#v:preEscapedToMarkup">preEscapedToMarkup</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze.html#preEscapedToMarkup" class="link">Source</a> <a href="#v:preEscapedToMarkup" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ToMarkup:ToMarkup:13" class="instance expander" onclick="toggleSection('i:ic:ToMarkup:ToMarkup:13')"></span> <a href="Text-Blaze.html#t:ToMarkup">ToMarkup</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a></span> <a href="src/Text-Blaze.html#line-127" class="link">Source</a> <a href="#t:ToMarkup" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ToMarkup:ToMarkup:13" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toMarkup">toMarkup</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze.html#toMarkup" class="link">Source</a> <a href="#v:toMarkup" class="selflink">#</a></p><p class="src"><a href="#v:preEscapedToMarkup">preEscapedToMarkup</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze.html#preEscapedToMarkup" class="link">Source</a> <a href="#v:preEscapedToMarkup" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ToMarkup:ToMarkup:14" class="instance expander" onclick="toggleSection('i:ic:ToMarkup:ToMarkup:14')"></span> <a href="Text-Blaze.html#t:ToMarkup">ToMarkup</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></span> <a href="src/Text-Blaze.html#line-121" class="link">Source</a> <a href="#t:ToMarkup" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ToMarkup:ToMarkup:14" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toMarkup">toMarkup</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze.html#toMarkup" class="link">Source</a> <a href="#v:toMarkup" class="selflink">#</a></p><p class="src"><a href="#v:preEscapedToMarkup">preEscapedToMarkup</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze.html#preEscapedToMarkup" class="link">Source</a> <a href="#v:preEscapedToMarkup" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ToMarkup:ToMarkup:15" class="instance expander" onclick="toggleSection('i:ic:ToMarkup:ToMarkup:15')"></span> <a href="Text-Blaze.html#t:ToMarkup">ToMarkup</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy-Builder.html#t:Builder">Builder</a></span> <a href="src/Text-Blaze.html#line-133" class="link">Source</a> <a href="#t:ToMarkup" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ToMarkup:ToMarkup:15" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toMarkup">toMarkup</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy-Builder.html#t:Builder">Builder</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze.html#toMarkup" class="link">Source</a> <a href="#v:toMarkup" class="selflink">#</a></p><p class="src"><a href="#v:preEscapedToMarkup">preEscapedToMarkup</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy-Builder.html#t:Builder">Builder</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze.html#preEscapedToMarkup" class="link">Source</a> <a href="#v:preEscapedToMarkup" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ToMarkup:ToMarkup:16" class="instance expander" onclick="toggleSection('i:ic:ToMarkup:ToMarkup:16')"></span> <a href="Text-Blaze.html#t:ToMarkup">ToMarkup</a> <a href="Text-Blaze.html#t:Markup">Markup</a></span> <a href="src/Text-Blaze.html#line-113" class="link">Source</a> <a href="#t:ToMarkup" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ToMarkup:ToMarkup:16" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toMarkup">toMarkup</a> :: <a href="Text-Blaze.html#t:Markup">Markup</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze.html#toMarkup" class="link">Source</a> <a href="#v:toMarkup" class="selflink">#</a></p><p class="src"><a href="#v:preEscapedToMarkup">preEscapedToMarkup</a> :: <a href="Text-Blaze.html#t:Markup">Markup</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze.html#preEscapedToMarkup" class="link">Source</a> <a href="#v:preEscapedToMarkup" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ToMarkup:ToMarkup:17" class="instance expander" onclick="toggleSection('i:ic:ToMarkup:ToMarkup:17')"></span> <a href="Text-Blaze.html#t:ToMarkup">ToMarkup</a> [<a href="Text-Blaze.html#t:Markup">Markup</a>]</span> <a href="src/Text-Blaze.html#line-117" class="link">Source</a> <a href="#t:ToMarkup" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ToMarkup:ToMarkup:17" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toMarkup">toMarkup</a> :: [<a href="Text-Blaze.html#t:Markup">Markup</a>] -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze.html#toMarkup" class="link">Source</a> <a href="#v:toMarkup" class="selflink">#</a></p><p class="src"><a href="#v:preEscapedToMarkup">preEscapedToMarkup</a> :: [<a href="Text-Blaze.html#t:Markup">Markup</a>] -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze.html#preEscapedToMarkup" class="link">Source</a> <a href="#v:preEscapedToMarkup" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:text" class="def">text</a> <a href="src/Text-Blaze-Internal.html#text" class="link">Source</a> <a href="#v:text" class="selflink">#</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>Text to render.</p></td></tr><tr><td class="src">-> <a href="Text-Blaze.html#t:Markup">Markup</a></td><td class="doc"><p>Resulting HTML fragment.</p></td></tr></table></div><div class="doc"><p>Render text. Functions like these can be used to supply content in HTML.</p></div></div><div class="top"><p class="src"><a id="v:preEscapedText" class="def">preEscapedText</a> <a href="src/Text-Blaze-Internal.html#preEscapedText" class="link">Source</a> <a href="#v:preEscapedText" class="selflink">#</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>Text to insert</p></td></tr><tr><td class="src">-> <a href="Text-Blaze.html#t:Markup">Markup</a></td><td class="doc"><p>Resulting HTML fragment</p></td></tr></table></div><div class="doc"><p>Render text without escaping.</p></div></div><div class="top"><p class="src"><a id="v:lazyText" class="def">lazyText</a> <a href="src/Text-Blaze-Internal.html#lazyText" class="link">Source</a> <a href="#v:lazyText" class="selflink">#</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-Lazy.html#t:Text">Text</a></td><td class="doc"><p>Text to insert</p></td></tr><tr><td class="src">-> <a href="Text-Blaze.html#t:Markup">Markup</a></td><td class="doc"><p>Resulting HTML fragment</p></td></tr></table></div><div class="doc"><p>A variant of <code><a href="Text-Blaze.html#v:text">text</a></code> for lazy <code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a></code>.</p></div></div><div class="top"><p class="src"><a id="v:preEscapedLazyText" class="def">preEscapedLazyText</a> <a href="src/Text-Blaze-Internal.html#preEscapedLazyText" class="link">Source</a> <a href="#v:preEscapedLazyText" class="selflink">#</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-Lazy.html#t:Text">Text</a></td><td class="doc"><p>Text to insert</p></td></tr><tr><td class="src">-> <a href="Text-Blaze.html#t:Markup">Markup</a></td><td class="doc"><p>Resulting HTML fragment</p></td></tr></table></div><div class="doc"><p>A variant of <code><a href="Text-Blaze.html#v:preEscapedText">preEscapedText</a></code> for lazy <code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a></code></p></div></div><div class="top"><p class="src"><a id="v:string" class="def">string</a> <a href="src/Text-Blaze-Internal.html#string" class="link">Source</a> <a href="#v:string" class="selflink">#</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.9.1.0/Data-String.html#t:String">String</a></td><td class="doc"><p>String to insert.</p></td></tr><tr><td class="src">-> <a href="Text-Blaze.html#t:Markup">Markup</a></td><td class="doc"><p>Resulting HTML fragment.</p></td></tr></table></div><div class="doc"><p>Create an HTML snippet from a <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></code>.</p></div></div><div class="top"><p class="src"><a id="v:preEscapedString" class="def">preEscapedString</a> <a href="src/Text-Blaze-Internal.html#preEscapedString" class="link">Source</a> <a href="#v:preEscapedString" class="selflink">#</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.9.1.0/Data-String.html#t:String">String</a></td><td class="doc"><p>String to insert.</p></td></tr><tr><td class="src">-> <a href="Text-Blaze.html#t:Markup">Markup</a></td><td class="doc"><p>Resulting HTML fragment.</p></td></tr></table></div><div class="doc"><p>Create an HTML snippet from a <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></code> without escaping</p></div></div><div class="top"><p class="src"><a id="v:unsafeByteString" class="def">unsafeByteString</a> <a href="src/Text-Blaze-Internal.html#unsafeByteString" class="link">Source</a> <a href="#v:unsafeByteString" class="selflink">#</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/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>Value to insert.</p></td></tr><tr><td class="src">-> <a href="Text-Blaze.html#t:Markup">Markup</a></td><td class="doc"><p>Resulting HTML fragment.</p></td></tr></table></div><div class="doc"><p>Insert a <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a></code>. This is an unsafe operation:</p><ul><li>The <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a></code> could have the wrong encoding.</li><li>The <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a></code> might contain illegal HTML characters (no escaping is
done).</li></ul></div></div><div class="top"><p class="src"><a id="v:unsafeLazyByteString" class="def">unsafeLazyByteString</a> <a href="src/Text-Blaze-Internal.html#unsafeLazyByteString" class="link">Source</a> <a href="#v:unsafeLazyByteString" class="selflink">#</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/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></td><td class="doc"><p>Value to insert</p></td></tr><tr><td class="src">-> <a href="Text-Blaze.html#t:Markup">Markup</a></td><td class="doc"><p>Resulting HTML fragment</p></td></tr></table></div><div class="doc"><p>Insert a lazy <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></code>. See <code><a href="Text-Blaze.html#v:unsafeByteString">unsafeByteString</a></code> for reasons why this
is an unsafe operation.</p></div></div><h1 id="g:4">Comments</h1><div class="top"><p class="src"><a id="v:textComment" class="def">textComment</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze-Internal.html#textComment" class="link">Source</a> <a href="#v:textComment" class="selflink">#</a></p><div class="doc"><p>Create a comment from a <code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></code> value.
The text should not contain <code>"--"</code>.
This is not checked by the library.</p></div></div><div class="top"><p class="src"><a id="v:lazyTextComment" class="def">lazyTextComment</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze-Internal.html#lazyTextComment" class="link">Source</a> <a href="#v:lazyTextComment" class="selflink">#</a></p><div class="doc"><p>Create a comment from a <code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a></code> value.
The text should not contain <code>"--"</code>.
This is not checked by the library.</p></div></div><div class="top"><p class="src"><a id="v:stringComment" class="def">stringComment</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze-Internal.html#stringComment" class="link">Source</a> <a href="#v:stringComment" class="selflink">#</a></p><div class="doc"><p>Create a comment from a <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></code> value.
The text should not contain <code>"--"</code>.
This is not checked by the library.</p></div></div><div class="top"><p class="src"><a id="v:unsafeByteStringComment" class="def">unsafeByteStringComment</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze-Internal.html#unsafeByteStringComment" class="link">Source</a> <a href="#v:unsafeByteStringComment" class="selflink">#</a></p><div class="doc"><p>Create a comment from a <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a></code> value.
The text should not contain <code>"--"</code>.
This is not checked by the library.</p></div></div><div class="top"><p class="src"><a id="v:unsafeLazyByteStringComment" class="def">unsafeLazyByteStringComment</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a> -> <a href="Text-Blaze.html#t:Markup">Markup</a> <a href="src/Text-Blaze-Internal.html#unsafeLazyByteStringComment" class="link">Source</a> <a href="#v:unsafeLazyByteStringComment" class="selflink">#</a></p><div class="doc"><p>Create a comment from a <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></code> value.
The text should not contain <code>"--"</code>.
This is not checked by the library.</p></div></div><h1 id="g:5">Creating tags.</h1><div class="top"><p class="src"><a id="v:textTag" class="def">textTag</a> <a href="src/Text-Blaze-Internal.html#textTag" class="link">Source</a> <a href="#v:textTag" class="selflink">#</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>Text to create a tag from</p></td></tr><tr><td class="src">-> <a href="Text-Blaze.html#t:Tag">Tag</a></td><td class="doc"><p>Resulting tag</p></td></tr></table></div><div class="doc"><p>Create a <code><a href="Text-Blaze.html#t:Tag">Tag</a></code> from some <code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></code>.</p></div></div><div class="top"><p class="src"><a id="v:stringTag" class="def">stringTag</a> <a href="src/Text-Blaze-Internal.html#stringTag" class="link">Source</a> <a href="#v:stringTag" class="selflink">#</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.9.1.0/Data-String.html#t:String">String</a></td><td class="doc"><p>String to create a tag from</p></td></tr><tr><td class="src">-> <a href="Text-Blaze.html#t:Tag">Tag</a></td><td class="doc"><p>Resulting tag</p></td></tr></table></div><div class="doc"><p>Create a <code><a href="Text-Blaze.html#t:Tag">Tag</a></code> from a <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></code>.</p></div></div><h1 id="g:6">Converting values to attribute values.</h1><div class="top"><p class="src"><span class="keyword">class</span> <a id="t:ToValue" class="def">ToValue</a> a <span class="keyword">where</span> <a href="src/Text-Blaze.html#ToValue" class="link">Source</a> <a href="#t:ToValue" class="selflink">#</a></p><div class="doc"><p>Class allowing us to use a single function for attribute values</p></div><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="Text-Blaze.html#v:toValue">toValue</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:toValue" class="def">toValue</a> :: a -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="src/Text-Blaze.html#toValue" class="link">Source</a> <a href="#v:toValue" class="selflink">#</a></p><div class="doc"><p>Convert a value to an attribute value</p></div><p class="src"><a id="v:preEscapedToValue" class="def">preEscapedToValue</a> :: a -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="src/Text-Blaze.html#preEscapedToValue" class="link">Source</a> <a href="#v:preEscapedToValue" class="selflink">#</a></p><div class="doc"><p>Convert a value to an attribute value without escaping</p></div></div><div class="subs instances"><p id="control.i:ToValue" class="caption collapser" onclick="toggleSection('i:ToValue')">Instances</p><div id="section.i:ToValue" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ToValue:ToValue:1" class="instance expander" onclick="toggleSection('i:ic:ToValue:ToValue:1')"></span> <a href="Text-Blaze.html#t:ToValue">ToValue</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a></span> <a href="src/Text-Blaze.html#line-246" class="link">Source</a> <a href="#t:ToValue" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ToValue:ToValue:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toValue">toValue</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="src/Text-Blaze.html#toValue" class="link">Source</a> <a href="#v:toValue" class="selflink">#</a></p><p class="src"><a href="#v:preEscapedToValue">preEscapedToValue</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="src/Text-Blaze.html#preEscapedToValue" class="link">Source</a> <a href="#v:preEscapedToValue" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ToValue:ToValue:2" class="instance expander" onclick="toggleSection('i:ic:ToValue:ToValue:2')"></span> <a href="Text-Blaze.html#t:ToValue">ToValue</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Char.html#t:Char">Char</a></span> <a href="src/Text-Blaze.html#line-242" class="link">Source</a> <a href="#t:ToValue" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ToValue:ToValue:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toValue">toValue</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Char.html#t:Char">Char</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="src/Text-Blaze.html#toValue" class="link">Source</a> <a href="#v:toValue" class="selflink">#</a></p><p class="src"><a href="#v:preEscapedToValue">preEscapedToValue</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Char.html#t:Char">Char</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="src/Text-Blaze.html#preEscapedToValue" class="link">Source</a> <a href="#v:preEscapedToValue" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ToValue:ToValue:3" class="instance expander" onclick="toggleSection('i:ic:ToValue:ToValue:3')"></span> <a href="Text-Blaze.html#t:ToValue">ToValue</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a></span> <a href="src/Text-Blaze.html#line-258" class="link">Source</a> <a href="#t:ToValue" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ToValue:ToValue:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toValue">toValue</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="src/Text-Blaze.html#toValue" class="link">Source</a> <a href="#v:toValue" class="selflink">#</a></p><p class="src"><a href="#v:preEscapedToValue">preEscapedToValue</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="src/Text-Blaze.html#preEscapedToValue" class="link">Source</a> <a href="#v:preEscapedToValue" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ToValue:ToValue:4" class="instance expander" onclick="toggleSection('i:ic:ToValue:ToValue:4')"></span> <a href="Text-Blaze.html#t:ToValue">ToValue</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Float">Float</a></span> <a href="src/Text-Blaze.html#line-254" class="link">Source</a> <a href="#t:ToValue" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ToValue:ToValue:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toValue">toValue</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Float">Float</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="src/Text-Blaze.html#toValue" class="link">Source</a> <a href="#v:toValue" class="selflink">#</a></p><p class="src"><a href="#v:preEscapedToValue">preEscapedToValue</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Float">Float</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="src/Text-Blaze.html#preEscapedToValue" class="link">Source</a> <a href="#v:preEscapedToValue" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ToValue:ToValue:5" class="instance expander" onclick="toggleSection('i:ic:ToValue:ToValue:5')"></span> <a href="Text-Blaze.html#t:ToValue">ToValue</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></span> <a href="src/Text-Blaze.html#line-230" class="link">Source</a> <a href="#t:ToValue" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ToValue:ToValue:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toValue">toValue</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="src/Text-Blaze.html#toValue" class="link">Source</a> <a href="#v:toValue" class="selflink">#</a></p><p class="src"><a href="#v:preEscapedToValue">preEscapedToValue</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="src/Text-Blaze.html#preEscapedToValue" class="link">Source</a> <a href="#v:preEscapedToValue" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ToValue:ToValue:6" class="instance expander" onclick="toggleSection('i:ic:ToValue:ToValue:6')"></span> <a href="Text-Blaze.html#t:ToValue">ToValue</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int32">Int32</a></span> <a href="src/Text-Blaze.html#line-234" class="link">Source</a> <a href="#t:ToValue" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ToValue:ToValue:6" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toValue">toValue</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int32">Int32</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="src/Text-Blaze.html#toValue" class="link">Source</a> <a href="#v:toValue" class="selflink">#</a></p><p class="src"><a href="#v:preEscapedToValue">preEscapedToValue</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int32">Int32</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="src/Text-Blaze.html#preEscapedToValue" class="link">Source</a> <a href="#v:preEscapedToValue" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ToValue:ToValue:7" class="instance expander" onclick="toggleSection('i:ic:ToValue:ToValue:7')"></span> <a href="Text-Blaze.html#t:ToValue">ToValue</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int64">Int64</a></span> <a href="src/Text-Blaze.html#line-238" class="link">Source</a> <a href="#t:ToValue" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ToValue:ToValue:7" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toValue">toValue</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int64">Int64</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="src/Text-Blaze.html#toValue" class="link">Source</a> <a href="#v:toValue" class="selflink">#</a></p><p class="src"><a href="#v:preEscapedToValue">preEscapedToValue</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int64">Int64</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="src/Text-Blaze.html#preEscapedToValue" class="link">Source</a> <a href="#v:preEscapedToValue" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ToValue:ToValue:8" class="instance expander" onclick="toggleSection('i:ic:ToValue:ToValue:8')"></span> <a href="Text-Blaze.html#t:ToValue">ToValue</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Integer">Integer</a></span> <a href="src/Text-Blaze.html#line-250" class="link">Source</a> <a href="#t:ToValue" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ToValue:ToValue:8" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toValue">toValue</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Integer">Integer</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="src/Text-Blaze.html#toValue" class="link">Source</a> <a href="#v:toValue" class="selflink">#</a></p><p class="src"><a href="#v:preEscapedToValue">preEscapedToValue</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Integer">Integer</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="src/Text-Blaze.html#preEscapedToValue" class="link">Source</a> <a href="#v:preEscapedToValue" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ToValue:ToValue:9" class="instance expander" onclick="toggleSection('i:ic:ToValue:ToValue:9')"></span> <a href="Text-Blaze.html#t:ToValue">ToValue</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Word.html#t:Word">Word</a></span> <a href="src/Text-Blaze.html#line-262" class="link">Source</a> <a href="#t:ToValue" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ToValue:ToValue:9" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toValue">toValue</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Word.html#t:Word">Word</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="src/Text-Blaze.html#toValue" class="link">Source</a> <a href="#v:toValue" class="selflink">#</a></p><p class="src"><a href="#v:preEscapedToValue">preEscapedToValue</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Word.html#t:Word">Word</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="src/Text-Blaze.html#preEscapedToValue" class="link">Source</a> <a href="#v:preEscapedToValue" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ToValue:ToValue:10" class="instance expander" onclick="toggleSection('i:ic:ToValue:ToValue:10')"></span> <a href="Text-Blaze.html#t:ToValue">ToValue</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Word.html#t:Word32">Word32</a></span> <a href="src/Text-Blaze.html#line-266" class="link">Source</a> <a href="#t:ToValue" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ToValue:ToValue:10" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toValue">toValue</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Word.html#t:Word32">Word32</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="src/Text-Blaze.html#toValue" class="link">Source</a> <a href="#v:toValue" class="selflink">#</a></p><p class="src"><a href="#v:preEscapedToValue">preEscapedToValue</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Word.html#t:Word32">Word32</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="src/Text-Blaze.html#preEscapedToValue" class="link">Source</a> <a href="#v:preEscapedToValue" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ToValue:ToValue:11" class="instance expander" onclick="toggleSection('i:ic:ToValue:ToValue:11')"></span> <a href="Text-Blaze.html#t:ToValue">ToValue</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Word.html#t:Word64">Word64</a></span> <a href="src/Text-Blaze.html#line-270" class="link">Source</a> <a href="#t:ToValue" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ToValue:ToValue:11" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toValue">toValue</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Word.html#t:Word64">Word64</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="src/Text-Blaze.html#toValue" class="link">Source</a> <a href="#v:toValue" class="selflink">#</a></p><p class="src"><a href="#v:preEscapedToValue">preEscapedToValue</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Word.html#t:Word64">Word64</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="src/Text-Blaze.html#preEscapedToValue" class="link">Source</a> <a href="#v:preEscapedToValue" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ToValue:ToValue:12" class="instance expander" onclick="toggleSection('i:ic:ToValue:ToValue:12')"></span> <a href="Text-Blaze.html#t:ToValue">ToValue</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></span> <a href="src/Text-Blaze.html#line-224" class="link">Source</a> <a href="#t:ToValue" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ToValue:ToValue:12" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toValue">toValue</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="src/Text-Blaze.html#toValue" class="link">Source</a> <a href="#v:toValue" class="selflink">#</a></p><p class="src"><a href="#v:preEscapedToValue">preEscapedToValue</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="src/Text-Blaze.html#preEscapedToValue" class="link">Source</a> <a href="#v:preEscapedToValue" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ToValue:ToValue:13" class="instance expander" onclick="toggleSection('i:ic:ToValue:ToValue:13')"></span> <a href="Text-Blaze.html#t:ToValue">ToValue</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a></span> <a href="src/Text-Blaze.html#line-212" class="link">Source</a> <a href="#t:ToValue" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ToValue:ToValue:13" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toValue">toValue</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="src/Text-Blaze.html#toValue" class="link">Source</a> <a href="#v:toValue" class="selflink">#</a></p><p class="src"><a href="#v:preEscapedToValue">preEscapedToValue</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="src/Text-Blaze.html#preEscapedToValue" class="link">Source</a> <a href="#v:preEscapedToValue" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ToValue:ToValue:14" class="instance expander" onclick="toggleSection('i:ic:ToValue:ToValue:14')"></span> <a href="Text-Blaze.html#t:ToValue">ToValue</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></span> <a href="src/Text-Blaze.html#line-206" class="link">Source</a> <a href="#t:ToValue" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ToValue:ToValue:14" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toValue">toValue</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="src/Text-Blaze.html#toValue" class="link">Source</a> <a href="#v:toValue" class="selflink">#</a></p><p class="src"><a href="#v:preEscapedToValue">preEscapedToValue</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="src/Text-Blaze.html#preEscapedToValue" class="link">Source</a> <a href="#v:preEscapedToValue" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ToValue:ToValue:15" class="instance expander" onclick="toggleSection('i:ic:ToValue:ToValue:15')"></span> <a href="Text-Blaze.html#t:ToValue">ToValue</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy-Builder.html#t:Builder">Builder</a></span> <a href="src/Text-Blaze.html#line-218" class="link">Source</a> <a href="#t:ToValue" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ToValue:ToValue:15" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toValue">toValue</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy-Builder.html#t:Builder">Builder</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="src/Text-Blaze.html#toValue" class="link">Source</a> <a href="#v:toValue" class="selflink">#</a></p><p class="src"><a href="#v:preEscapedToValue">preEscapedToValue</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy-Builder.html#t:Builder">Builder</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="src/Text-Blaze.html#preEscapedToValue" class="link">Source</a> <a href="#v:preEscapedToValue" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ToValue:ToValue:16" class="instance expander" onclick="toggleSection('i:ic:ToValue:ToValue:16')"></span> <a href="Text-Blaze.html#t:ToValue">ToValue</a> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a></span> <a href="src/Text-Blaze.html#line-202" class="link">Source</a> <a href="#t:ToValue" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ToValue:ToValue:16" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toValue">toValue</a> :: <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="src/Text-Blaze.html#toValue" class="link">Source</a> <a href="#v:toValue" class="selflink">#</a></p><p class="src"><a href="#v:preEscapedToValue">preEscapedToValue</a> :: <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="src/Text-Blaze.html#preEscapedToValue" class="link">Source</a> <a href="#v:preEscapedToValue" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:textValue" class="def">textValue</a> <a href="src/Text-Blaze-Internal.html#textValue" class="link">Source</a> <a href="#v:textValue" class="selflink">#</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>The actual value.</p></td></tr><tr><td class="src">-> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a></td><td class="doc"><p>Resulting attribute value.</p></td></tr></table></div><div class="doc"><p>Render an attribute value from <code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></code>.</p></div></div><div class="top"><p class="src"><a id="v:preEscapedTextValue" class="def">preEscapedTextValue</a> <a href="src/Text-Blaze-Internal.html#preEscapedTextValue" class="link">Source</a> <a href="#v:preEscapedTextValue" class="selflink">#</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>The actual value</p></td></tr><tr><td class="src">-> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a></td><td class="doc"><p>Resulting attribute value</p></td></tr></table></div><div class="doc"><p>Render an attribute value from <code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></code> without escaping.</p></div></div><div class="top"><p class="src"><a id="v:lazyTextValue" class="def">lazyTextValue</a> <a href="src/Text-Blaze-Internal.html#lazyTextValue" class="link">Source</a> <a href="#v:lazyTextValue" class="selflink">#</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-Lazy.html#t:Text">Text</a></td><td class="doc"><p>The actual value</p></td></tr><tr><td class="src">-> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a></td><td class="doc"><p>Resulting attribute value</p></td></tr></table></div><div class="doc"><p>A variant of <code><a href="Text-Blaze.html#v:textValue">textValue</a></code> for lazy <code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a></code></p></div></div><div class="top"><p class="src"><a id="v:preEscapedLazyTextValue" class="def">preEscapedLazyTextValue</a> <a href="src/Text-Blaze-Internal.html#preEscapedLazyTextValue" class="link">Source</a> <a href="#v:preEscapedLazyTextValue" class="selflink">#</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-Lazy.html#t:Text">Text</a></td><td class="doc"><p>The actual value</p></td></tr><tr><td class="src">-> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a></td><td class="doc"><p>Resulting attribute value</p></td></tr></table></div><div class="doc"><p>A variant of <code><a href="Text-Blaze.html#v:preEscapedTextValue">preEscapedTextValue</a></code> for lazy <code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a></code></p></div></div><div class="top"><p class="src"><a id="v:stringValue" class="def">stringValue</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="src/Text-Blaze-Internal.html#stringValue" class="link">Source</a> <a href="#v:stringValue" class="selflink">#</a></p><div class="doc"><p>Create an attribute value from a <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></code>.</p></div></div><div class="top"><p class="src"><a id="v:preEscapedStringValue" class="def">preEscapedStringValue</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a> <a href="src/Text-Blaze-Internal.html#preEscapedStringValue" class="link">Source</a> <a href="#v:preEscapedStringValue" class="selflink">#</a></p><div class="doc"><p>Create an attribute value from a <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></code> without escaping.</p></div></div><div class="top"><p class="src"><a id="v:unsafeByteStringValue" class="def">unsafeByteStringValue</a> <a href="src/Text-Blaze-Internal.html#unsafeByteStringValue" class="link">Source</a> <a href="#v:unsafeByteStringValue" class="selflink">#</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/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>ByteString value</p></td></tr><tr><td class="src">-> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a></td><td class="doc"><p>Resulting attribute value</p></td></tr></table></div><div class="doc"><p>Create an attribute value from a <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a></code>. See <code><a href="Text-Blaze.html#v:unsafeByteString">unsafeByteString</a></code>
for reasons why this might not be a good idea.</p></div></div><div class="top"><p class="src"><a id="v:unsafeLazyByteStringValue" class="def">unsafeLazyByteStringValue</a> <a href="src/Text-Blaze-Internal.html#unsafeLazyByteStringValue" class="link">Source</a> <a href="#v:unsafeLazyByteStringValue" class="selflink">#</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/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></td><td class="doc"><p>ByteString value</p></td></tr><tr><td class="src">-> <a href="Text-Blaze.html#t:AttributeValue">AttributeValue</a></td><td class="doc"><p>Resulting attribute value</p></td></tr></table></div><div class="doc"><p>Create an attribute value from a lazy <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></code>. See
<code><a href="Text-Blaze.html#v:unsafeByteString">unsafeByteString</a></code> for reasons why this might not be a good idea.</p></div></div><h1 id="g:7">Setting attributes</h1><div class="top"><p class="src"><a id="v:-33-" class="def">(!)</a> :: <a href="Text-Blaze-Internal.html#t:Attributable">Attributable</a> h => h -> <a href="Text-Blaze.html#t:Attribute">Attribute</a> -> h <a href="src/Text-Blaze-Internal.html#%21" class="link">Source</a> <a href="#v:-33-" class="selflink">#</a></p><div class="doc"><p>Apply an attribute to an element.</p><p>Example:</p><pre>img ! src "foo.png"</pre><p>Result:</p><pre><img src="foo.png" /></pre><p>This can be used on nested elements as well.</p><p>Example:</p><pre>p ! style "float: right" $ "Hello!"</pre><p>Result:</p><pre><p style="float: right">Hello!</p></pre></div></div><div class="top"><p class="src"><a id="v:-33--63-" class="def">(!?)</a> :: <a href="Text-Blaze-Internal.html#t:Attributable">Attributable</a> h => h -> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a>, <a href="Text-Blaze.html#t:Attribute">Attribute</a>) -> h <a href="src/Text-Blaze-Internal.html#%21%3F" class="link">Source</a> <a href="#v:-33--63-" class="selflink">#</a></p><div class="doc"><p>Shorthand for setting an attribute depending on a conditional.</p><p>Example:</p><pre>p !? (isBig, A.class "big") $ "Hello"</pre><p>Gives the same result as:</p><pre>(if isBig then p ! A.class "big" else p) "Hello"</pre></div></div><h1 id="g:8">Modifiying Markup trees</h1><div class="top"><p class="src"><a id="v:contents" class="def">contents</a> :: <a href="Text-Blaze-Internal.html#t:MarkupM">MarkupM</a> a -> <a href="Text-Blaze-Internal.html#t:MarkupM">MarkupM</a> a <a href="src/Text-Blaze-Internal.html#contents" class="link">Source</a> <a href="#v:contents" class="selflink">#</a></p><div class="doc"><p>Take only the text content of an HTML tree.</p><pre>contents $ do
p ! $ "Hello "
p ! $ "Word!"</pre><p>Result:</p><pre>Hello World!</pre></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.3</p></div></body></html>
|