/usr/share/doc/libghc-yesod-newsfeed-doc/html/Yesod-RssFeed.html is in libghc-yesod-newsfeed-doc 1.6-3build10.
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 | <!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.RssFeed</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-RssFeed.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Yesod-RssFeed.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-newsfeed-1.6: Helper functions and data types for producing News feeds.</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.RssFeed</p></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><a href="#v:rssFeed">rssFeed</a> :: <a href="file:///usr/share/doc/libghc-yesod-core-doc/html/Yesod-Core.html#t:MonadHandler">MonadHandler</a> m => <a href="Yesod-RssFeed.html#t:Feed">Feed</a> (<a href="file:///usr/share/doc/libghc-yesod-core-doc/html/Yesod-Core.html#t:Route">Route</a> (<a href="file:///usr/share/doc/libghc-yesod-core-doc/html/Yesod-Core.html#t:HandlerSite">HandlerSite</a> m)) -> m <a href="Yesod-RssFeed.html#t:RepRss">RepRss</a></li><li class="src short"><a href="#v:rssFeedText">rssFeedText</a> :: <a href="file:///usr/share/doc/libghc-yesod-core-doc/html/Yesod-Core.html#t:MonadHandler">MonadHandler</a> m => <a href="Yesod-RssFeed.html#t:Feed">Feed</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> m <a href="Yesod-RssFeed.html#t:RepRss">RepRss</a></li><li class="src short"><a href="#v:rssLink">rssLink</a> :: <a href="file:///usr/share/doc/libghc-yesod-core-doc/html/Yesod-Core.html#t:MonadWidget">MonadWidget</a> m => <a href="file:///usr/share/doc/libghc-yesod-core-doc/html/Yesod-Core.html#t:Route">Route</a> (<a href="file:///usr/share/doc/libghc-yesod-core-doc/html/Yesod-Core.html#t:HandlerSite">HandlerSite</a> m) -> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> m ()</li><li class="src short"><span class="keyword">newtype</span> <a href="#t:RepRss">RepRss</a> = <a href="#v:RepRss">RepRss</a> <a href="file:///usr/share/doc/libghc-yesod-core-doc/html/Yesod-Core-Types.html#t:Content">Content</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:Feed">Feed</a> url = <a href="#v:Feed">Feed</a> {<ul class="subs"><li><a href="#v:feedTitle">feedTitle</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></li><li><a href="#v:feedLinkSelf">feedLinkSelf</a> :: url</li><li><a href="#v:feedLinkHome">feedLinkHome</a> :: url</li><li><a href="#v:feedAuthor">feedAuthor</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></li><li><a href="#v:feedDescription">feedDescription</a> :: <a href="file:///usr/share/doc/libghc-blaze-html-doc/html/Text-Blaze-Html.html#t:Html">Html</a></li><li><a href="#v:feedLanguage">feedLanguage</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></li><li><a href="#v:feedUpdated">feedUpdated</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.6.0.1/Data-Time-Clock.html#t:UTCTime">UTCTime</a></li><li><a href="#v:feedLogo">feedLogo</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> (url, <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a>)</li><li><a href="#v:feedEntries">feedEntries</a> :: [<a href="Yesod-RssFeed.html#t:FeedEntry">FeedEntry</a> url]</li></ul>}</li><li class="src short"><span class="keyword">data</span> <a href="#t:FeedEntry">FeedEntry</a> url = <a href="#v:FeedEntry">FeedEntry</a> {<ul class="subs"><li><a href="#v:feedEntryLink">feedEntryLink</a> :: url</li><li><a href="#v:feedEntryUpdated">feedEntryUpdated</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.6.0.1/Data-Time-Clock.html#t:UTCTime">UTCTime</a></li><li><a href="#v:feedEntryTitle">feedEntryTitle</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></li><li><a href="#v:feedEntryContent">feedEntryContent</a> :: <a href="file:///usr/share/doc/libghc-blaze-html-doc/html/Text-Blaze-Html.html#t:Html">Html</a></li><li><a href="#v:feedEntryEnclosure">feedEntryEnclosure</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="Yesod-RssFeed.html#t:EntryEnclosure">EntryEnclosure</a> url)</li></ul>}</li><li class="src short"><span class="keyword">data</span> <a href="#t:EntryEnclosure">EntryEnclosure</a> url = <a href="#v:EntryEnclosure">EntryEnclosure</a> {<ul class="subs"><li><a href="#v:enclosedUrl">enclosedUrl</a> :: url</li><li><a href="#v:enclosedSize">enclosedSize</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></li><li><a href="#v:enclosedMimeType">enclosedMimeType</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></li></ul>}</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a id="v:rssFeed" class="def">rssFeed</a> :: <a href="file:///usr/share/doc/libghc-yesod-core-doc/html/Yesod-Core.html#t:MonadHandler">MonadHandler</a> m => <a href="Yesod-RssFeed.html#t:Feed">Feed</a> (<a href="file:///usr/share/doc/libghc-yesod-core-doc/html/Yesod-Core.html#t:Route">Route</a> (<a href="file:///usr/share/doc/libghc-yesod-core-doc/html/Yesod-Core.html#t:HandlerSite">HandlerSite</a> m)) -> m <a href="Yesod-RssFeed.html#t:RepRss">RepRss</a> <a href="src/Yesod-RssFeed.html#rssFeed" class="link">Source</a> <a href="#v:rssFeed" class="selflink">#</a></p><div class="doc"><p>Generate the feed</p></div></div><div class="top"><p class="src"><a id="v:rssFeedText" class="def">rssFeedText</a> :: <a href="file:///usr/share/doc/libghc-yesod-core-doc/html/Yesod-Core.html#t:MonadHandler">MonadHandler</a> m => <a href="Yesod-RssFeed.html#t:Feed">Feed</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> m <a href="Yesod-RssFeed.html#t:RepRss">RepRss</a> <a href="src/Yesod-RssFeed.html#rssFeedText" class="link">Source</a> <a href="#v:rssFeedText" class="selflink">#</a></p><div class="doc"><p>Same as <code><code><a href="Yesod-RssFeed.html#v:rssFeed">rssFeed</a></code></code> but for <code>'Feed Text'</code>. Useful for cases where you are
generating a feed of external links.</p></div></div><div class="top"><p class="src"><a id="v:rssLink" class="def">rssLink</a> <a href="src/Yesod-RssFeed.html#rssLink" class="link">Source</a> <a href="#v:rssLink" 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-yesod-core-doc/html/Yesod-Core.html#t:MonadWidget">MonadWidget</a> m</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/libghc-yesod-core-doc/html/Yesod-Core.html#t:Route">Route</a> (<a href="file:///usr/share/doc/libghc-yesod-core-doc/html/Yesod-Core.html#t:HandlerSite">HandlerSite</a> m)</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></td><td class="doc"><p>title</p></td></tr><tr><td class="src">-> m ()</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Generates a link tag in the head of a widget.</p></div></div><div class="top"><p class="src"><span class="keyword">newtype</span> <a id="t:RepRss" class="def">RepRss</a> <a href="src/Yesod-RssFeed.html#RepRss" class="link">Source</a> <a href="#t:RepRss" class="selflink">#</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:RepRss" class="def">RepRss</a> <a href="file:///usr/share/doc/libghc-yesod-core-doc/html/Yesod-Core-Types.html#t:Content">Content</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:RepRss" class="caption collapser" onclick="toggleSection('i:RepRss')">Instances</p><div id="section.i:RepRss" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:RepRss:ToContent:1" class="instance expander" onclick="toggleSection('i:id:RepRss:ToContent:1')"></span> <a href="file:///usr/share/doc/libghc-yesod-core-doc/html/Yesod-Core-Content.html#t:ToContent">ToContent</a> <a href="Yesod-RssFeed.html#t:RepRss">RepRss</a></span> <a href="src/Yesod-RssFeed.html#line-35" class="link">Source</a> <a href="#t:RepRss" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:RepRss:ToContent:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toContent">toContent</a> :: <a href="Yesod-RssFeed.html#t:RepRss">RepRss</a> -> <a href="file:///usr/share/doc/libghc-yesod-core-doc/html/Yesod-Core-Types.html#t:Content">Content</a> <a href="#v:toContent" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:RepRss:HasContentType:2" class="instance expander" onclick="toggleSection('i:id:RepRss:HasContentType:2')"></span> <a href="file:///usr/share/doc/libghc-yesod-core-doc/html/Yesod-Core-Content.html#t:HasContentType">HasContentType</a> <a href="Yesod-RssFeed.html#t:RepRss">RepRss</a></span> <a href="src/Yesod-RssFeed.html#line-36" class="link">Source</a> <a href="#t:RepRss" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:RepRss:HasContentType:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:getContentType">getContentType</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> m => m <a href="Yesod-RssFeed.html#t:RepRss">RepRss</a> -> <a href="file:///usr/share/doc/libghc-yesod-core-doc/html/Yesod-Core-Types.html#t:ContentType">ContentType</a> <a href="#v:getContentType" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:RepRss:ToTypedContent:3" class="instance expander" onclick="toggleSection('i:id:RepRss:ToTypedContent:3')"></span> <a href="file:///usr/share/doc/libghc-yesod-core-doc/html/Yesod-Core-Content.html#t:ToTypedContent">ToTypedContent</a> <a href="Yesod-RssFeed.html#t:RepRss">RepRss</a></span> <a href="src/Yesod-RssFeed.html#line-38" class="link">Source</a> <a href="#t:RepRss" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:RepRss:ToTypedContent:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toTypedContent">toTypedContent</a> :: <a href="Yesod-RssFeed.html#t:RepRss">RepRss</a> -> <a href="file:///usr/share/doc/libghc-yesod-core-doc/html/Yesod-Core-Types.html#t:TypedContent">TypedContent</a> <a href="#v:toTypedContent" 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:Feed" class="def">Feed</a> url <a href="src/Yesod-FeedTypes.html#Feed" class="link">Source</a> <a href="#t:Feed" class="selflink">#</a></p><div class="doc"><p>The overall feed</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:Feed" class="def">Feed</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:feedTitle" class="def">feedTitle</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></dfn><div class="doc empty"> </div></li><li><dfn class="src"><a id="v:feedLinkSelf" class="def">feedLinkSelf</a> :: url</dfn><div class="doc empty"> </div></li><li><dfn class="src"><a id="v:feedLinkHome" class="def">feedLinkHome</a> :: url</dfn><div class="doc empty"> </div></li><li><dfn class="src"><a id="v:feedAuthor" class="def">feedAuthor</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></dfn><div class="doc empty"> </div></li><li><dfn class="src"><a id="v:feedDescription" class="def">feedDescription</a> :: <a href="file:///usr/share/doc/libghc-blaze-html-doc/html/Text-Blaze-Html.html#t:Html">Html</a></dfn><div class="doc"><p>note: currently only used for Rss</p></div></li><li><dfn class="src"><a id="v:feedLanguage" class="def">feedLanguage</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></dfn><div class="doc"><p>note: currently only used for Rss, possible values:
<a href="http://www.rssboard.org/rss-language-codes">http://www.rssboard.org/rss-language-codes</a></p></div></li><li><dfn class="src"><a id="v:feedUpdated" class="def">feedUpdated</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.6.0.1/Data-Time-Clock.html#t:UTCTime">UTCTime</a></dfn><div class="doc empty"> </div></li><li><dfn class="src"><a id="v:feedLogo" class="def">feedLogo</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> (url, <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a>)</dfn><div class="doc empty"> </div></li><li><dfn class="src"><a id="v:feedEntries" class="def">feedEntries</a> :: [<a href="Yesod-RssFeed.html#t:FeedEntry">FeedEntry</a> url]</dfn><div class="doc empty"> </div></li></ul></div></td></tr></table></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:FeedEntry" class="def">FeedEntry</a> url <a href="src/Yesod-FeedTypes.html#FeedEntry" class="link">Source</a> <a href="#t:FeedEntry" class="selflink">#</a></p><div class="doc"><p>Each feed entry</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:FeedEntry" class="def">FeedEntry</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:feedEntryLink" class="def">feedEntryLink</a> :: url</dfn><div class="doc empty"> </div></li><li><dfn class="src"><a id="v:feedEntryUpdated" class="def">feedEntryUpdated</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.6.0.1/Data-Time-Clock.html#t:UTCTime">UTCTime</a></dfn><div class="doc empty"> </div></li><li><dfn class="src"><a id="v:feedEntryTitle" class="def">feedEntryTitle</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></dfn><div class="doc empty"> </div></li><li><dfn class="src"><a id="v:feedEntryContent" class="def">feedEntryContent</a> :: <a href="file:///usr/share/doc/libghc-blaze-html-doc/html/Text-Blaze-Html.html#t:Html">Html</a></dfn><div class="doc empty"> </div></li><li><dfn class="src"><a id="v:feedEntryEnclosure" class="def">feedEntryEnclosure</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="Yesod-RssFeed.html#t:EntryEnclosure">EntryEnclosure</a> url)</dfn><div class="doc"><p>Allows enclosed data: RSS <enclosure> or Atom <link
rel=enclosure></p><p><em>Since: 1.5</em></p></div></li></ul></div></td></tr></table></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:EntryEnclosure" class="def">EntryEnclosure</a> url <a href="src/Yesod-FeedTypes.html#EntryEnclosure" class="link">Source</a> <a href="#t:EntryEnclosure" class="selflink">#</a></p><div class="doc"><p>RSS and Atom allow for linked content to be enclosed in a feed entry.
This represents the enclosed content.</p><p>Atom feeds ignore <code><a href="Yesod-RssFeed.html#v:enclosedSize">enclosedSize</a></code> and <code><a href="Yesod-RssFeed.html#v:enclosedMimeType">enclosedMimeType</a></code>.</p><p><em>Since: 1.6</em></p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:EntryEnclosure" class="def">EntryEnclosure</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:enclosedUrl" class="def">enclosedUrl</a> :: url</dfn><div class="doc empty"> </div></li><li><dfn class="src"><a id="v:enclosedSize" class="def">enclosedSize</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></dfn><div class="doc"><p>Specified in bytes</p></div></li><li><dfn class="src"><a id="v:enclosedMimeType" class="def">enclosedMimeType</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></dfn><div class="doc empty"> </div></li></ul></div></td></tr></table></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>
|