/usr/share/doc/libghc-hamlet-doc/html/Text-Hamlet.html is in libghc-hamlet-doc 1.1.7.1-1build3.
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 | <!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.Hamlet</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_Text-Hamlet.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Text-Hamlet.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">hamlet-1.1.7.1: Haml-like template files that are compile-time checked</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr></table><p class="caption">Text.Hamlet</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Plain HTML
</a></li><li><a href="#g:2">Hamlet
</a></li><li><a href="#g:3">I18N Hamlet
</a></li><li><a href="#g:4">Type classes
</a></li><li><a href="#g:5">Internal, for making more
</a></li></ul></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:Html">Html</a> = <a href="/usr/share/doc/libghc-blaze-markup-doc/html/Text-Blaze-Internal.html#t:Markup">Markup</a></li><li class="src short"><a href="#v:shamlet">shamlet</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Quote.html#t:QuasiQuoter">QuasiQuoter</a></li><li class="src short"><a href="#v:shamletFile">shamletFile</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a></li><li class="src short"><a href="#v:xshamlet">xshamlet</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Quote.html#t:QuasiQuoter">QuasiQuoter</a></li><li class="src short"><a href="#v:xshamletFile">xshamletFile</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:HtmlUrl">HtmlUrl</a> url = Render url -> <a href="Text-Hamlet.html#t:Html">Html</a></li><li class="src short"><a href="#v:hamlet">hamlet</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Quote.html#t:QuasiQuoter">QuasiQuoter</a></li><li class="src short"><a href="#v:hamletFile">hamletFile</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a></li><li class="src short"><a href="#v:xhamlet">xhamlet</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Quote.html#t:QuasiQuoter">QuasiQuoter</a></li><li class="src short"><a href="#v:xhamletFile">xhamletFile</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:HtmlUrlI18n">HtmlUrlI18n</a> msg url = Translate msg -> Render url -> <a href="Text-Hamlet.html#t:Html">Html</a></li><li class="src short"><a href="#v:ihamlet">ihamlet</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Quote.html#t:QuasiQuoter">QuasiQuoter</a></li><li class="src short"><a href="#v:ihamletFile">ihamletFile</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a></li><li class="src short"><span class="keyword">class</span> <a href="#t:ToAttributes">ToAttributes</a> a <span class="keyword">where</span><ul class="subs"><li><a href="#v:toAttributes">toAttributes</a> :: a -> [(<a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a>, <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a>)]</li></ul></li><li class="src short"><span class="keyword">data</span> <a href="#t:HamletSettings">HamletSettings</a> = <a href="#v:HamletSettings">HamletSettings</a> {<ul class="subs"><li><a href="#v:hamletDoctype">hamletDoctype</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a></li><li><a href="#v:hamletNewlines">hamletNewlines</a> :: <a href="Text-Hamlet.html#t:NewlineStyle">NewlineStyle</a></li><li><a href="#v:hamletCloseStyle">hamletCloseStyle</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -> <a href="Text-Hamlet.html#t:CloseStyle">CloseStyle</a></li><li><a href="#v:hamletDoctypeNames">hamletDoctypeNames</a> :: [(<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>)]</li></ul>}</li><li class="src short"><span class="keyword">data</span> <a href="#t:NewlineStyle">NewlineStyle</a> <ul class="subs"><li>= <a href="#v:NoNewlines">NoNewlines</a> </li><li>| <a href="#v:NewlinesText">NewlinesText</a> </li><li>| <a href="#v:AlwaysNewlines">AlwaysNewlines</a> </li><li>| <a href="#v:DefaultNewlineStyle">DefaultNewlineStyle</a> </li></ul></li><li class="src short"><a href="#v:hamletWithSettings">hamletWithSettings</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="Text-Hamlet.html#t:HamletRules">HamletRules</a> -> <a href="Text-Hamlet.html#t:HamletSettings">HamletSettings</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Quote.html#t:QuasiQuoter">QuasiQuoter</a></li><li class="src short"><a href="#v:hamletFileWithSettings">hamletFileWithSettings</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="Text-Hamlet.html#t:HamletRules">HamletRules</a> -> <a href="Text-Hamlet.html#t:HamletSettings">HamletSettings</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a></li><li class="src short"><a href="#v:defaultHamletSettings">defaultHamletSettings</a> :: <a href="Text-Hamlet.html#t:HamletSettings">HamletSettings</a></li><li class="src short"><a href="#v:xhtmlHamletSettings">xhtmlHamletSettings</a> :: <a href="Text-Hamlet.html#t:HamletSettings">HamletSettings</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:Env">Env</a> = <a href="#v:Env">Env</a> {<ul class="subs"><li><a href="#v:urlRender">urlRender</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> ((<a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a>) -> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a>)</li><li><a href="#v:msgRender">msgRender</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> ((<a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a>) -> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a>)</li></ul>}</li><li class="src short"><span class="keyword">data</span> <a href="#t:HamletRules">HamletRules</a> = <a href="#v:HamletRules">HamletRules</a> {<ul class="subs"><li><a href="#v:hrFromHtml">hrFromHtml</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a></li><li><a href="#v:hrWithEnv">hrWithEnv</a> :: (<a href="Text-Hamlet.html#t:Env">Env</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a>) -> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a></li><li><a href="#v:hrEmbed">hrEmbed</a> :: <a href="Text-Hamlet.html#t:Env">Env</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a></li></ul>}</li><li class="src short"><a href="#v:hamletRules">hamletRules</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="Text-Hamlet.html#t:HamletRules">HamletRules</a></li><li class="src short"><a href="#v:ihamletRules">ihamletRules</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="Text-Hamlet.html#t:HamletRules">HamletRules</a></li><li class="src short"><a href="#v:htmlRules">htmlRules</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="Text-Hamlet.html#t:HamletRules">HamletRules</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:CloseStyle">CloseStyle</a> <ul class="subs"><li>= <a href="#v:NoClose">NoClose</a> </li><li>| <a href="#v:CloseInside">CloseInside</a> </li><li>| <a href="#v:CloseSeparate">CloseSeparate</a> </li></ul></li></ul></div><div id="interface"><h1 id="g:1">Plain HTML
</h1><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:Html" class="def">Html</a> = <a href="/usr/share/doc/libghc-blaze-markup-doc/html/Text-Blaze-Internal.html#t:Markup">Markup</a></p></div><div class="top"><p class="src"><a name="v:shamlet" class="def">shamlet</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Quote.html#t:QuasiQuoter">QuasiQuoter</a><a href="src/Text-Hamlet.html#shamlet" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:shamletFile" class="def">shamletFile</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a><a href="src/Text-Hamlet.html#shamletFile" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:xshamlet" class="def">xshamlet</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Quote.html#t:QuasiQuoter">QuasiQuoter</a><a href="src/Text-Hamlet.html#xshamlet" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:xshamletFile" class="def">xshamletFile</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a><a href="src/Text-Hamlet.html#xshamletFile" class="link">Source</a></p></div><h1 id="g:2">Hamlet
</h1><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:HtmlUrl" class="def">HtmlUrl</a> url = Render url -> <a href="Text-Hamlet.html#t:Html">Html</a><a href="src/Text-Hamlet.html#HtmlUrl" class="link">Source</a></p><div class="doc"><p>A function generating an <code><a href="Text-Hamlet.html#t:Html">Html</a></code> given a URL-rendering function.
</p></div></div><div class="top"><p class="src"><a name="v:hamlet" class="def">hamlet</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Quote.html#t:QuasiQuoter">QuasiQuoter</a><a href="src/Text-Hamlet.html#hamlet" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:hamletFile" class="def">hamletFile</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a><a href="src/Text-Hamlet.html#hamletFile" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:xhamlet" class="def">xhamlet</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Quote.html#t:QuasiQuoter">QuasiQuoter</a><a href="src/Text-Hamlet.html#xhamlet" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:xhamletFile" class="def">xhamletFile</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a><a href="src/Text-Hamlet.html#xhamletFile" class="link">Source</a></p></div><h1 id="g:3">I18N Hamlet
</h1><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:HtmlUrlI18n" class="def">HtmlUrlI18n</a> msg url = Translate msg -> Render url -> <a href="Text-Hamlet.html#t:Html">Html</a><a href="src/Text-Hamlet.html#HtmlUrlI18n" class="link">Source</a></p><div class="doc"><p>A function generating an <code><a href="Text-Hamlet.html#t:Html">Html</a></code> given a message translator and a URL rendering function.
</p></div></div><div class="top"><p class="src"><a name="v:ihamlet" class="def">ihamlet</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Quote.html#t:QuasiQuoter">QuasiQuoter</a><a href="src/Text-Hamlet.html#ihamlet" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:ihamletFile" class="def">ihamletFile</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a><a href="src/Text-Hamlet.html#ihamletFile" class="link">Source</a></p></div><h1 id="g:4">Type classes
</h1><div class="top"><p class="src"><span class="keyword">class</span> <a name="t:ToAttributes" class="def">ToAttributes</a> a <span class="keyword">where</span><a href="src/Text-Hamlet.html#ToAttributes" class="link">Source</a></p><div class="doc"><p>Convert some value to a list of attribute pairs.
</p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:toAttributes" class="def">toAttributes</a> :: a -> [(<a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a>, <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a>)]<a href="src/Text-Hamlet.html#toAttributes" class="link">Source</a></p></div><div class="subs instances"><p id="control.i:ToAttributes" class="caption collapser" onclick="toggleSection('i:ToAttributes')">Instances</p><div id="section.i:ToAttributes" class="show"><table><tr><td class="src"><a href="Text-Hamlet.html#t:ToAttributes">ToAttributes</a> [(<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>)]</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Text-Hamlet.html#t:ToAttributes">ToAttributes</a> [(<a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a>, <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a>)]</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Text-Hamlet.html#t:ToAttributes">ToAttributes</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Text-Hamlet.html#t:ToAttributes">ToAttributes</a> (<a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a>, <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a>)</td><td class="doc empty"> </td></tr></table></div></div></div><h1 id="g:5">Internal, for making more
</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:HamletSettings" class="def">HamletSettings</a> <a href="src/Text-Hamlet-Parse.html#HamletSettings" class="link">Source</a></p><div class="doc"><p>Settings for parsing of a hamlet document.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:HamletSettings" class="def">HamletSettings</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:hamletDoctype" class="def">hamletDoctype</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a></dt><dd class="doc"><p>The value to replace a "!!!" with. Do not include the trailing
newline.
</p></dd><dt class="src"><a name="v:hamletNewlines" class="def">hamletNewlines</a> :: <a href="Text-Hamlet.html#t:NewlineStyle">NewlineStyle</a></dt><dd class="doc"><p>Should we add newlines to the output, making it more human-readable?
Useful for client-side debugging but may alter browser page layout.
</p></dd><dt class="src"><a name="v:hamletCloseStyle" class="def">hamletCloseStyle</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -> <a href="Text-Hamlet.html#t:CloseStyle">CloseStyle</a></dt><dd class="doc"><p>How a tag should be closed. Use this to switch between HTML, XHTML
or even XML output.
</p></dd><dt class="src"><a name="v:hamletDoctypeNames" class="def">hamletDoctypeNames</a> :: [(<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>)]</dt><dd class="doc"><p>Mapping from short names in "$doctype" statements to full doctype.
</p></dd></dl><div class="clear"></div></div></td></tr></table></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:NewlineStyle" class="def">NewlineStyle</a> <a href="src/Text-Hamlet-Parse.html#NewlineStyle" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:NoNewlines" class="def">NoNewlines</a></td><td class="doc"><p>never add newlines
</p></td></tr><tr><td class="src"><a name="v:NewlinesText" class="def">NewlinesText</a></td><td class="doc"><p>add newlines between consecutive text lines
</p></td></tr><tr><td class="src"><a name="v:AlwaysNewlines" class="def">AlwaysNewlines</a></td><td class="doc"><p>add newlines everywhere
</p></td></tr><tr><td class="src"><a name="v:DefaultNewlineStyle" class="def">DefaultNewlineStyle</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:NewlineStyle" class="caption collapser" onclick="toggleSection('i:NewlineStyle')">Instances</p><div id="section.i:NewlineStyle" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> <a href="Text-Hamlet.html#t:NewlineStyle">NewlineStyle</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:hamletWithSettings" class="def">hamletWithSettings</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="Text-Hamlet.html#t:HamletRules">HamletRules</a> -> <a href="Text-Hamlet.html#t:HamletSettings">HamletSettings</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Quote.html#t:QuasiQuoter">QuasiQuoter</a><a href="src/Text-Hamlet.html#hamletWithSettings" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:hamletFileWithSettings" class="def">hamletFileWithSettings</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="Text-Hamlet.html#t:HamletRules">HamletRules</a> -> <a href="Text-Hamlet.html#t:HamletSettings">HamletSettings</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a><a href="src/Text-Hamlet.html#hamletFileWithSettings" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:defaultHamletSettings" class="def">defaultHamletSettings</a> :: <a href="Text-Hamlet.html#t:HamletSettings">HamletSettings</a><a href="src/Text-Hamlet-Parse.html#defaultHamletSettings" class="link">Source</a></p><div class="doc"><p>Defaults settings: HTML5 doctype and HTML-style empty tags.
</p></div></div><div class="top"><p class="src"><a name="v:xhtmlHamletSettings" class="def">xhtmlHamletSettings</a> :: <a href="Text-Hamlet.html#t:HamletSettings">HamletSettings</a><a href="src/Text-Hamlet-Parse.html#xhtmlHamletSettings" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Env" class="def">Env</a> <a href="src/Text-Hamlet.html#Env" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Env" class="def">Env</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:urlRender" class="def">urlRender</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> ((<a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a>) -> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a>)</dt><dd class="doc empty"> </dd><dt class="src"><a name="v:msgRender" class="def">msgRender</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> ((<a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a>) -> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a>)</dt><dd class="doc empty"> </dd></dl><div class="clear"></div></div></td></tr></table></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:HamletRules" class="def">HamletRules</a> <a href="src/Text-Hamlet.html#HamletRules" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:HamletRules" class="def">HamletRules</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:hrFromHtml" class="def">hrFromHtml</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:hrWithEnv" class="def">hrWithEnv</a> :: (<a href="Text-Hamlet.html#t:Env">Env</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a>) -> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:hrEmbed" class="def">hrEmbed</a> :: <a href="Text-Hamlet.html#t:Env">Env</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a></dt><dd class="doc empty"> </dd></dl><div class="clear"></div></div></td></tr></table></div></div><div class="top"><p class="src"><a name="v:hamletRules" class="def">hamletRules</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="Text-Hamlet.html#t:HamletRules">HamletRules</a><a href="src/Text-Hamlet.html#hamletRules" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:ihamletRules" class="def">ihamletRules</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="Text-Hamlet.html#t:HamletRules">HamletRules</a><a href="src/Text-Hamlet.html#ihamletRules" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:htmlRules" class="def">htmlRules</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="Text-Hamlet.html#t:HamletRules">HamletRules</a><a href="src/Text-Hamlet.html#htmlRules" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:CloseStyle" class="def">CloseStyle</a> <a href="src/Text-Hamlet-Parse.html#CloseStyle" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:NoClose" class="def">NoClose</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:CloseInside" class="def">CloseInside</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:CloseSeparate" class="def">CloseSeparate</a></td><td class="doc empty"> </td></tr></table></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.13.2</p></div></body></html>
|