This file is indexed.

/usr/share/doc/libghc-yesod-core-doc/html/Yesod-Routes-TH-Types.html is in libghc-yesod-core-doc 1.4.37.2-1build2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

1
2
3
4
<!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>Yesod.Routes.TH.Types</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_Yesod-Routes-TH-Types.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Yesod-Routes-TH-Types.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">yesod-core-1.4.37.2: Creation of type-safe, RESTful web applications.</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">Yesod.Routes.TH.Types</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Data types</a><ul><li><a href="#g:2">Helper functions</a></li></ul></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Warning! This module is considered internal and may have breaking changes</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">data</span> <a href="#t:Resource">Resource</a> typ = <a href="#v:Resource">Resource</a> {<ul class="subs"><li><a href="#v:resourceName">resourceName</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li><a href="#v:resourcePieces">resourcePieces</a> :: [<a href="Yesod-Routes-TH-Types.html#t:Piece">Piece</a> typ]</li><li><a href="#v:resourceDispatch">resourceDispatch</a> :: <a href="Yesod-Routes-TH-Types.html#t:Dispatch">Dispatch</a> typ</li><li><a href="#v:resourceAttrs">resourceAttrs</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>]</li><li><a href="#v:resourceCheck">resourceCheck</a> :: <a href="Yesod-Routes-TH-Types.html#t:CheckOverlap">CheckOverlap</a></li></ul>}</li><li class="src short"><span class="keyword">data</span> <a href="#t:ResourceTree">ResourceTree</a> typ<ul class="subs"><li>= <a href="#v:ResourceLeaf">ResourceLeaf</a> (<a href="Yesod-Routes-TH-Types.html#t:Resource">Resource</a> typ)</li><li>| <a href="#v:ResourceParent">ResourceParent</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="Yesod-Routes-TH-Types.html#t:CheckOverlap">CheckOverlap</a> [<a href="Yesod-Routes-TH-Types.html#t:Piece">Piece</a> typ] [<a href="Yesod-Routes-TH-Types.html#t:ResourceTree">ResourceTree</a> typ]</li></ul></li><li class="src short"><span class="keyword">data</span> <a href="#t:Piece">Piece</a> typ<ul class="subs"><li>= <a href="#v:Static">Static</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li>| <a href="#v:Dynamic">Dynamic</a> typ</li></ul></li><li class="src short"><span class="keyword">data</span> <a href="#t:Dispatch">Dispatch</a> typ<ul class="subs"><li>= <a href="#v:Methods">Methods</a> { <ul class="subs"><li><a href="#v:methodsMulti">methodsMulti</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> typ</li><li><a href="#v:methodsMethods">methodsMethods</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>]</li></ul> }</li><li>| <a href="#v:Subsite">Subsite</a> { <ul class="subs"><li><a href="#v:subsiteType">subsiteType</a> :: typ</li><li><a href="#v:subsiteFunc">subsiteFunc</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li></ul> }</li></ul></li><li class="src short"><span class="keyword">type</span> <a href="#t:CheckOverlap">CheckOverlap</a> = <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:FlatResource">FlatResource</a> a = <a href="#v:FlatResource">FlatResource</a> {<ul class="subs"><li><a href="#v:frParentPieces">frParentPieces</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="Yesod-Routes-TH-Types.html#t:Piece">Piece</a> a])]</li><li><a href="#v:frName">frName</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li><a href="#v:frPieces">frPieces</a> :: [<a href="Yesod-Routes-TH-Types.html#t:Piece">Piece</a> a]</li><li><a href="#v:frDispatch">frDispatch</a> :: <a href="Yesod-Routes-TH-Types.html#t:Dispatch">Dispatch</a> a</li><li><a href="#v:frCheck">frCheck</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a></li></ul>}</li><li class="src short"><a href="#v:resourceMulti">resourceMulti</a> :: <a href="Yesod-Routes-TH-Types.html#t:Resource">Resource</a> typ -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> typ</li><li class="src short"><a href="#v:resourceTreePieces">resourceTreePieces</a> :: <a href="Yesod-Routes-TH-Types.html#t:ResourceTree">ResourceTree</a> typ -&gt; [<a href="Yesod-Routes-TH-Types.html#t:Piece">Piece</a> typ]</li><li class="src short"><a href="#v:resourceTreeName">resourceTreeName</a> :: <a href="Yesod-Routes-TH-Types.html#t:ResourceTree">ResourceTree</a> typ -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:flatten">flatten</a> :: [<a href="Yesod-Routes-TH-Types.html#t:ResourceTree">ResourceTree</a> a] -&gt; [<a href="Yesod-Routes-TH-Types.html#t:FlatResource">FlatResource</a> a]</li></ul></div><div id="interface"><h1 id="g:1">Data types</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:Resource" class="def">Resource</a> typ <a href="src/Yesod-Routes-TH-Types.html#Resource" class="link">Source</a> <a href="#t:Resource" class="selflink">#</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:Resource" class="def">Resource</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:resourceName" class="def">resourceName</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:resourcePieces" class="def">resourcePieces</a> :: [<a href="Yesod-Routes-TH-Types.html#t:Piece">Piece</a> typ]</dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:resourceDispatch" class="def">resourceDispatch</a> :: <a href="Yesod-Routes-TH-Types.html#t:Dispatch">Dispatch</a> typ</dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:resourceAttrs" class="def">resourceAttrs</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>]</dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:resourceCheck" class="def">resourceCheck</a> :: <a href="Yesod-Routes-TH-Types.html#t:CheckOverlap">CheckOverlap</a></dfn><div class="doc empty">&nbsp;</div></li></ul></div></td></tr></table></div><div class="subs instances"><p id="control.i:Resource" class="caption collapser" onclick="toggleSection('i:Resource')">Instances</p><div id="section.i:Resource" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Resource:Functor:1" class="instance expander" onclick="toggleSection('i:id:Resource:Functor:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Functor.html#t:Functor">Functor</a> <a href="Yesod-Routes-TH-Types.html#t:Resource">Resource</a></span> <a href="src/Yesod-Routes-TH-Types.html#line-45" class="link">Source</a> <a href="#t:Resource" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Resource:Functor:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -&gt; b) -&gt; <a href="Yesod-Routes-TH-Types.html#t:Resource">Resource</a> a -&gt; <a href="Yesod-Routes-TH-Types.html#t:Resource">Resource</a> b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(&lt;$)</a> :: a -&gt; <a href="Yesod-Routes-TH-Types.html#t:Resource">Resource</a> b -&gt; <a href="Yesod-Routes-TH-Types.html#t:Resource">Resource</a> a <a href="#v:-60--36-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Resource:Show:2" class="instance expander" onclick="toggleSection('i:id:Resource:Show:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:Show">Show</a> typ =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:Show">Show</a> (<a href="Yesod-Routes-TH-Types.html#t:Resource">Resource</a> typ)</span> <a href="src/Yesod-Routes-TH-Types.html#line-45" class="link">Source</a> <a href="#t:Resource" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Resource:Show:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Yesod-Routes-TH-Types.html#t:Resource">Resource</a> typ -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Yesod-Routes-TH-Types.html#t:Resource">Resource</a> typ -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Yesod-Routes-TH-Types.html#t:Resource">Resource</a> typ] -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Resource:Lift:3" class="instance expander" onclick="toggleSection('i:id:Resource:Lift:3')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/template-haskell-2.11.1.0/Language-Haskell-TH-Syntax.html#t:Lift">Lift</a> t =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/template-haskell-2.11.1.0/Language-Haskell-TH-Syntax.html#t:Lift">Lift</a> (<a href="Yesod-Routes-TH-Types.html#t:Resource">Resource</a> t)</span> <a href="src/Yesod-Routes-TH-Types.html#line-49" class="link">Source</a> <a href="#t:Resource" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Resource:Lift:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:lift">lift</a> :: <a href="Yesod-Routes-TH-Types.html#t:Resource">Resource</a> t -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/template-haskell-2.11.1.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/template-haskell-2.11.1.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a> <a href="#v:lift" 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:ResourceTree" class="def">ResourceTree</a> typ <a href="src/Yesod-Routes-TH-Types.html#ResourceTree" class="link">Source</a> <a href="#t:ResourceTree" class="selflink">#</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:ResourceLeaf" class="def">ResourceLeaf</a> (<a href="Yesod-Routes-TH-Types.html#t:Resource">Resource</a> typ)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:ResourceParent" class="def">ResourceParent</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="Yesod-Routes-TH-Types.html#t:CheckOverlap">CheckOverlap</a> [<a href="Yesod-Routes-TH-Types.html#t:Piece">Piece</a> typ] [<a href="Yesod-Routes-TH-Types.html#t:ResourceTree">ResourceTree</a> typ]</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:ResourceTree" class="caption collapser" onclick="toggleSection('i:ResourceTree')">Instances</p><div id="section.i:ResourceTree" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ResourceTree:Functor:1" class="instance expander" onclick="toggleSection('i:id:ResourceTree:Functor:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Functor.html#t:Functor">Functor</a> <a href="Yesod-Routes-TH-Types.html#t:ResourceTree">ResourceTree</a></span> <a href="src/Yesod-Routes-TH-Types.html#line-24" class="link">Source</a> <a href="#t:ResourceTree" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ResourceTree:Functor:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -&gt; b) -&gt; <a href="Yesod-Routes-TH-Types.html#t:ResourceTree">ResourceTree</a> a -&gt; <a href="Yesod-Routes-TH-Types.html#t:ResourceTree">ResourceTree</a> b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(&lt;$)</a> :: a -&gt; <a href="Yesod-Routes-TH-Types.html#t:ResourceTree">ResourceTree</a> b -&gt; <a href="Yesod-Routes-TH-Types.html#t:ResourceTree">ResourceTree</a> a <a href="#v:-60--36-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ResourceTree:Lift:2" class="instance expander" onclick="toggleSection('i:id:ResourceTree:Lift:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/template-haskell-2.11.1.0/Language-Haskell-TH-Syntax.html#t:Lift">Lift</a> t =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/template-haskell-2.11.1.0/Language-Haskell-TH-Syntax.html#t:Lift">Lift</a> (<a href="Yesod-Routes-TH-Types.html#t:ResourceTree">ResourceTree</a> t)</span> <a href="src/Yesod-Routes-TH-Types.html#line-34" class="link">Source</a> <a href="#t:ResourceTree" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ResourceTree:Lift:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:lift">lift</a> :: <a href="Yesod-Routes-TH-Types.html#t:ResourceTree">ResourceTree</a> t -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/template-haskell-2.11.1.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/template-haskell-2.11.1.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a> <a href="#v:lift" 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:Piece" class="def">Piece</a> typ <a href="src/Yesod-Routes-TH-Types.html#Piece" class="link">Source</a> <a href="#t:Piece" class="selflink">#</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:Static" class="def">Static</a> <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 empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Dynamic" class="def">Dynamic</a> typ</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:Piece" class="caption collapser" onclick="toggleSection('i:Piece')">Instances</p><div id="section.i:Piece" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Piece:Functor:1" class="instance expander" onclick="toggleSection('i:id:Piece:Functor:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Functor.html#t:Functor">Functor</a> <a href="Yesod-Routes-TH-Types.html#t:Piece">Piece</a></span> <a href="src/Yesod-Routes-TH-Types.html#line-55" class="link">Source</a> <a href="#t:Piece" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Piece:Functor:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -&gt; b) -&gt; <a href="Yesod-Routes-TH-Types.html#t:Piece">Piece</a> a -&gt; <a href="Yesod-Routes-TH-Types.html#t:Piece">Piece</a> b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(&lt;$)</a> :: a -&gt; <a href="Yesod-Routes-TH-Types.html#t:Piece">Piece</a> b -&gt; <a href="Yesod-Routes-TH-Types.html#t:Piece">Piece</a> a <a href="#v:-60--36-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Piece:Show:2" class="instance expander" onclick="toggleSection('i:id:Piece:Show:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:Show">Show</a> typ =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:Show">Show</a> (<a href="Yesod-Routes-TH-Types.html#t:Piece">Piece</a> typ)</span> <a href="src/Yesod-Routes-TH-Types.html#line-53" class="link">Source</a> <a href="#t:Piece" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Piece:Show:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Yesod-Routes-TH-Types.html#t:Piece">Piece</a> typ -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Yesod-Routes-TH-Types.html#t:Piece">Piece</a> typ -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Yesod-Routes-TH-Types.html#t:Piece">Piece</a> typ] -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Piece:Lift:3" class="instance expander" onclick="toggleSection('i:id:Piece:Lift:3')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/template-haskell-2.11.1.0/Language-Haskell-TH-Syntax.html#t:Lift">Lift</a> t =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/template-haskell-2.11.1.0/Language-Haskell-TH-Syntax.html#t:Lift">Lift</a> (<a href="Yesod-Routes-TH-Types.html#t:Piece">Piece</a> t)</span> <a href="src/Yesod-Routes-TH-Types.html#line-59" class="link">Source</a> <a href="#t:Piece" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Piece:Lift:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:lift">lift</a> :: <a href="Yesod-Routes-TH-Types.html#t:Piece">Piece</a> t -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/template-haskell-2.11.1.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/template-haskell-2.11.1.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a> <a href="#v:lift" 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:Dispatch" class="def">Dispatch</a> typ <a href="src/Yesod-Routes-TH-Types.html#Dispatch" class="link">Source</a> <a href="#t:Dispatch" class="selflink">#</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:Methods" class="def">Methods</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:methodsMulti" class="def">methodsMulti</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> typ</dfn><div class="doc"><p>type of the multi piece at the end</p></div></li><li><dfn class="src"><a id="v:methodsMethods" class="def">methodsMethods</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>]</dfn><div class="doc"><p>supported request methods</p></div></li></ul></div></td></tr><tr><td class="src"><a id="v:Subsite" class="def">Subsite</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:subsiteType" class="def">subsiteType</a> :: typ</dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:subsiteFunc" class="def">subsiteFunc</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></dfn><div class="doc empty">&nbsp;</div></li></ul></div></td></tr></table></div><div class="subs instances"><p id="control.i:Dispatch" class="caption collapser" onclick="toggleSection('i:Dispatch')">Instances</p><div id="section.i:Dispatch" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Dispatch:Functor:1" class="instance expander" onclick="toggleSection('i:id:Dispatch:Functor:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Functor.html#t:Functor">Functor</a> <a href="Yesod-Routes-TH-Types.html#t:Dispatch">Dispatch</a></span> <a href="src/Yesod-Routes-TH-Types.html#line-74" class="link">Source</a> <a href="#t:Dispatch" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Dispatch:Functor:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -&gt; b) -&gt; <a href="Yesod-Routes-TH-Types.html#t:Dispatch">Dispatch</a> a -&gt; <a href="Yesod-Routes-TH-Types.html#t:Dispatch">Dispatch</a> b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(&lt;$)</a> :: a -&gt; <a href="Yesod-Routes-TH-Types.html#t:Dispatch">Dispatch</a> b -&gt; <a href="Yesod-Routes-TH-Types.html#t:Dispatch">Dispatch</a> a <a href="#v:-60--36-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Dispatch:Show:2" class="instance expander" onclick="toggleSection('i:id:Dispatch:Show:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:Show">Show</a> typ =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:Show">Show</a> (<a href="Yesod-Routes-TH-Types.html#t:Dispatch">Dispatch</a> typ)</span> <a href="src/Yesod-Routes-TH-Types.html#line-72" class="link">Source</a> <a href="#t:Dispatch" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Dispatch:Show:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Yesod-Routes-TH-Types.html#t:Dispatch">Dispatch</a> typ -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Yesod-Routes-TH-Types.html#t:Dispatch">Dispatch</a> typ -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Yesod-Routes-TH-Types.html#t:Dispatch">Dispatch</a> typ] -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Dispatch:Lift:3" class="instance expander" onclick="toggleSection('i:id:Dispatch:Lift:3')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/template-haskell-2.11.1.0/Language-Haskell-TH-Syntax.html#t:Lift">Lift</a> t =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/template-haskell-2.11.1.0/Language-Haskell-TH-Syntax.html#t:Lift">Lift</a> (<a href="Yesod-Routes-TH-Types.html#t:Dispatch">Dispatch</a> t)</span> <a href="src/Yesod-Routes-TH-Types.html#line-78" class="link">Source</a> <a href="#t:Dispatch" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Dispatch:Lift:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:lift">lift</a> :: <a href="Yesod-Routes-TH-Types.html#t:Dispatch">Dispatch</a> t -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/template-haskell-2.11.1.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/template-haskell-2.11.1.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a> <a href="#v:lift" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:CheckOverlap" class="def">CheckOverlap</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="src/Yesod-Routes-TH-Types.html#CheckOverlap" class="link">Source</a> <a href="#t:CheckOverlap" class="selflink">#</a></p></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:FlatResource" class="def">FlatResource</a> a <a href="src/Yesod-Routes-TH-Types.html#FlatResource" class="link">Source</a> <a href="#t:FlatResource" class="selflink">#</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:FlatResource" class="def">FlatResource</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:frParentPieces" class="def">frParentPieces</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="Yesod-Routes-TH-Types.html#t:Piece">Piece</a> a])]</dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:frName" class="def">frName</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:frPieces" class="def">frPieces</a> :: [<a href="Yesod-Routes-TH-Types.html#t:Piece">Piece</a> a]</dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:frDispatch" class="def">frDispatch</a> :: <a href="Yesod-Routes-TH-Types.html#t:Dispatch">Dispatch</a> a</dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:frCheck" class="def">frCheck</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a></dfn><div class="doc empty">&nbsp;</div></li></ul></div></td></tr></table></div></div><h2 id="g:2">Helper functions</h2><div class="top"><p class="src"><a id="v:resourceMulti" class="def">resourceMulti</a> :: <a href="Yesod-Routes-TH-Types.html#t:Resource">Resource</a> typ -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> typ <a href="src/Yesod-Routes-TH-Types.html#resourceMulti" class="link">Source</a> <a href="#v:resourceMulti" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:resourceTreePieces" class="def">resourceTreePieces</a> :: <a href="Yesod-Routes-TH-Types.html#t:ResourceTree">ResourceTree</a> typ -&gt; [<a href="Yesod-Routes-TH-Types.html#t:Piece">Piece</a> typ] <a href="src/Yesod-Routes-TH-Types.html#resourceTreePieces" class="link">Source</a> <a href="#v:resourceTreePieces" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:resourceTreeName" class="def">resourceTreeName</a> :: <a href="Yesod-Routes-TH-Types.html#t:ResourceTree">ResourceTree</a> typ -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="src/Yesod-Routes-TH-Types.html#resourceTreeName" class="link">Source</a> <a href="#v:resourceTreeName" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:flatten" class="def">flatten</a> :: [<a href="Yesod-Routes-TH-Types.html#t:ResourceTree">ResourceTree</a> a] -&gt; [<a href="Yesod-Routes-TH-Types.html#t:FlatResource">FlatResource</a> a] <a href="src/Yesod-Routes-TH-Types.html#flatten" class="link">Source</a> <a href="#v:flatten" class="selflink">#</a></p></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>