/usr/share/doc/libghc-relational-query-doc/html/Database-Relational-Query-Monad-Trans-Join.html is in libghc-relational-query-doc 0.9.5.1-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 | <!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>Database.Relational.Query.Monad.Trans.Join</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_Database-Relational-Query-Monad-Trans-Join.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Database-Relational-Query-Monad-Trans-Join.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">relational-query-0.9.5.1: Typeful, Modular, Relational, algebraic query engine</p></div><div id="content"><div id="module-header"><table class="info"><tr><th valign="top">Copyright</th><td>2013-2017 Kei Hibino</td></tr><tr><th>License</th><td>BSD3</td></tr><tr><th>Maintainer</th><td>ex8k.hibino@gmail.com</td></tr><tr><th>Stability</th><td>experimental</td></tr><tr><th>Portability</th><td>unknown</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">Database.Relational.Query.Monad.Trans.Join</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Transformer into join query</a></li><li><a href="#g:2">Result</a></li><li><a href="#g:3">Unsafe API</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>This module defines monad transformer which lift to basic <code><a href="Database-Relational-Query-Monad-Class.html#t:MonadQuery">MonadQuery</a></code>.</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:QueryJoin">QueryJoin</a> m a</li><li class="src short"><a href="#v:join-39-">join'</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 -> <a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a> m a</li><li class="src short"><a href="#v:extractProduct">extractProduct</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Functor.html#t:Functor">Functor</a> m => <a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a> m a -> m ((a, <a href="Database-Relational-Query-Sub.html#t:JoinProduct">JoinProduct</a>), Duplication)</li><li class="src short"><a href="#v:unsafeSubQueryWithAttr">unsafeSubQueryWithAttr</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> q => <a href="Database-Relational-Query-Sub.html#t:NodeAttr">NodeAttr</a> -> <a href="Database-Relational-Query-Sub.html#t:Qualified">Qualified</a> <a href="Database-Relational-Query-Sub.html#t:SubQuery">SubQuery</a> -> <a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a> q (<a href="Database-Relational-Query-Sub.html#t:Projection">Projection</a> c r)</li></ul></div><div id="interface"><h1 id="g:1">Transformer into join query</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:QueryJoin" class="def">QueryJoin</a> m a <a href="src/Database-Relational-Query-Monad-Trans-Join.html#QueryJoin" class="link">Source</a> <a href="#t:QueryJoin" class="selflink">#</a></p><div class="doc"><p><code><a href="file:///usr/share/doc/ghc-doc/html/libraries/transformers-0.5.2.0/Control-Monad-Trans-State-Lazy.html#t:StateT">StateT</a></code> type to accumulate join product context.</p></div><div class="subs instances"><p id="control.i:QueryJoin" class="caption collapser" onclick="toggleSection('i:QueryJoin')">Instances</p><div id="section.i:QueryJoin" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:QueryJoin:MonadTrans:1" class="instance expander" onclick="toggleSection('i:id:QueryJoin:MonadTrans:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/transformers-0.5.2.0/Control-Monad-Trans-Class.html#t:MonadTrans">MonadTrans</a> <a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a></span> <a href="src/Database-Relational-Query-Monad-Trans-Join.html#line-54" class="link">Source</a> <a href="#t:QueryJoin" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:QueryJoin:MonadTrans:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:lift">lift</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 -> <a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a> m a <a href="#v:lift" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:QueryJoin:MonadQualify:2" class="instance expander" onclick="toggleSection('i:id:QueryJoin:MonadQualify:2')"></span> <a href="Database-Relational-Query-Monad-Class.html#t:MonadQualify">MonadQualify</a> q m => <a href="Database-Relational-Query-Monad-Class.html#t:MonadQualify">MonadQualify</a> q (<a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a> m)</span> <a href="src/Database-Relational-Query-Monad-Trans-Join.html#line-71" class="link">Source</a> <a href="#t:QueryJoin" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:QueryJoin:MonadQualify:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:liftQualify">liftQualify</a> :: q a -> <a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a> m a <a href="src/Database-Relational-Query-Monad-Class.html#liftQualify" class="link">Source</a> <a href="#v:liftQualify" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:QueryJoin:Monad:3" class="instance expander" onclick="toggleSection('i:id:QueryJoin:Monad:3')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> (<a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a> m)</span> <a href="src/Database-Relational-Query-Monad-Trans-Join.html#line-52" class="link">Source</a> <a href="#t:QueryJoin" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:QueryJoin:Monad:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-62--62--61-">(>>=)</a> :: <a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a> m a -> (a -> <a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a> m b) -> <a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a> m b <a href="#v:-62--62--61-" class="selflink">#</a></p><p class="src"><a href="#v:-62--62-">(>>)</a> :: <a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a> m a -> <a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a> m b -> <a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a> m b <a href="#v:-62--62-" class="selflink">#</a></p><p class="src"><a href="#v:return">return</a> :: a -> <a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a> m a <a href="#v:return" class="selflink">#</a></p><p class="src"><a href="#v:fail">fail</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="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a> m a <a href="#v:fail" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:QueryJoin:Functor:4" class="instance expander" onclick="toggleSection('i:id:QueryJoin:Functor:4')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Functor.html#t:Functor">Functor</a> m => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Functor.html#t:Functor">Functor</a> (<a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a> m)</span> <a href="src/Database-Relational-Query-Monad-Trans-Join.html#line-52" class="link">Source</a> <a href="#t:QueryJoin" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:QueryJoin:Functor:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -> b) -> <a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a> m a -> <a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a> m b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> <a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a> m b -> <a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a> m 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:QueryJoin:Applicative:5" class="instance expander" onclick="toggleSection('i:id:QueryJoin:Applicative:5')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Applicative.html#t:Applicative">Applicative</a> (<a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a> m)</span> <a href="src/Database-Relational-Query-Monad-Trans-Join.html#line-52" class="link">Source</a> <a href="#t:QueryJoin" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:QueryJoin:Applicative:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:pure">pure</a> :: a -> <a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a> m a <a href="#v:pure" class="selflink">#</a></p><p class="src"><a href="#v:-60--42--62-">(<*>)</a> :: <a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a> m (a -> b) -> <a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a> m a -> <a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a> m b <a href="#v:-60--42--62-" class="selflink">#</a></p><p class="src"><a href="#v:-42--62-">(*>)</a> :: <a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a> m a -> <a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a> m b -> <a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a> m b <a href="#v:-42--62-" class="selflink">#</a></p><p class="src"><a href="#v:-60--42-">(<*)</a> :: <a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a> m a -> <a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a> m b -> <a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a> m a <a href="#v:-60--42-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:QueryJoin:MonadQuery:6" class="instance expander" onclick="toggleSection('i:id:QueryJoin:MonadQuery:6')"></span> <a href="Database-Relational-Query-Monad-Class.html#t:MonadQuery">MonadQuery</a> (<a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a> <a href="Database-Relational-Query-Monad-BaseType.html#t:ConfigureQuery">ConfigureQuery</a>)</span> <a href="src/Database-Relational-Query-Monad-Trans-Join.html#line-75" class="link">Source</a> <a href="#t:QueryJoin" class="selflink">#</a></td><td class="doc"><p>Joinable query instance.</p></td></tr><tr><td colspan="2"><div id="section.i:id:QueryJoin:MonadQuery:6" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:setDuplication">setDuplication</a> :: Duplication -> <a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a> <a href="Database-Relational-Query-Monad-BaseType.html#t:ConfigureQuery">ConfigureQuery</a> () <a href="src/Database-Relational-Query-Monad-Class.html#setDuplication" class="link">Source</a> <a href="#v:setDuplication" class="selflink">#</a></p><p class="src"><a href="#v:restrictJoin">restrictJoin</a> :: <a href="Database-Relational-Query-Sub.html#t:Projection">Projection</a> <a href="Database-Relational-Query-Context.html#t:Flat">Flat</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="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a>) -> <a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a> <a href="Database-Relational-Query-Monad-BaseType.html#t:ConfigureQuery">ConfigureQuery</a> () <a href="src/Database-Relational-Query-Monad-Class.html#restrictJoin" class="link">Source</a> <a href="#v:restrictJoin" class="selflink">#</a></p><p class="src"><a href="#v:query-39-">query'</a> :: <a href="Database-Relational-Query-Monad-BaseType.html#t:Relation">Relation</a> p r -> <a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a> <a href="Database-Relational-Query-Monad-BaseType.html#t:ConfigureQuery">ConfigureQuery</a> (<a href="Database-Relational-Query-Projectable.html#t:PlaceHolders">PlaceHolders</a> p, <a href="Database-Relational-Query-Sub.html#t:Projection">Projection</a> <a href="Database-Relational-Query-Context.html#t:Flat">Flat</a> r) <a href="src/Database-Relational-Query-Monad-Class.html#query%27" class="link">Source</a> <a href="#v:query-39-" class="selflink">#</a></p><p class="src"><a href="#v:queryMaybe-39-">queryMaybe'</a> :: <a href="Database-Relational-Query-Monad-BaseType.html#t:Relation">Relation</a> p r -> <a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a> <a href="Database-Relational-Query-Monad-BaseType.html#t:ConfigureQuery">ConfigureQuery</a> (<a href="Database-Relational-Query-Projectable.html#t:PlaceHolders">PlaceHolders</a> p, <a href="Database-Relational-Query-Sub.html#t:Projection">Projection</a> <a href="Database-Relational-Query-Context.html#t:Flat">Flat</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> r)) <a href="src/Database-Relational-Query-Monad-Class.html#queryMaybe%27" class="link">Source</a> <a href="#v:queryMaybe-39-" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:join-39-" class="def">join'</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 -> <a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a> m a <a href="src/Database-Relational-Query-Monad-Trans-Join.html#join%27" class="link">Source</a> <a href="#v:join-39-" class="selflink">#</a></p><div class="doc"><p>Lift to <code><a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a></code></p></div></div><h1 id="g:2">Result</h1><div class="top"><p class="src"><a id="v:extractProduct" class="def">extractProduct</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Functor.html#t:Functor">Functor</a> m => <a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a> m a -> m ((a, <a href="Database-Relational-Query-Sub.html#t:JoinProduct">JoinProduct</a>), Duplication) <a href="src/Database-Relational-Query-Monad-Trans-Join.html#extractProduct" class="link">Source</a> <a href="#v:extractProduct" class="selflink">#</a></p><div class="doc"><p>Run <code><a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a></code> to get <code><a href="Database-Relational-Query-Sub.html#t:JoinProduct">JoinProduct</a></code></p></div></div><h1 id="g:3">Unsafe API</h1><div class="top"><p class="src"><a id="v:unsafeSubQueryWithAttr" class="def">unsafeSubQueryWithAttr</a> <a href="src/Database-Relational-Query-Monad-Trans-Join.html#unsafeSubQueryWithAttr" class="link">Source</a> <a href="#v:unsafeSubQueryWithAttr" 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/Control-Monad.html#t:Monad">Monad</a> q</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="Database-Relational-Query-Sub.html#t:NodeAttr">NodeAttr</a></td><td class="doc"><p>Attribute maybe or just</p></td></tr><tr><td class="src">-> <a href="Database-Relational-Query-Sub.html#t:Qualified">Qualified</a> <a href="Database-Relational-Query-Sub.html#t:SubQuery">SubQuery</a></td><td class="doc"><p><code><a href="Database-Relational-Query-Sub.html#t:SubQuery">SubQuery</a></code> to join</p></td></tr><tr><td class="src">-> <a href="Database-Relational-Query-Monad-Trans-Join.html#t:QueryJoin">QueryJoin</a> q (<a href="Database-Relational-Query-Sub.html#t:Projection">Projection</a> c r)</td><td class="doc"><p>Result joined context and <code><a href="Database-Relational-Query-Sub.html#t:SubQuery">SubQuery</a></code> result projection.</p></td></tr></table></div><div class="doc"><p>Unsafely join sub-query with this query.</p></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>
|