-
Notifications
You must be signed in to change notification settings - Fork 272
/
Control-Lens-Internal-Getter.html
6 lines (6 loc) · 15.1 KB
/
Control-Lens-Internal-Getter.html
1
2
3
4
5
6
<!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>Control.Lens.Internal.Getter</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_Control-Lens-Internal-Getter.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Control-Lens-Internal-Getter.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">lens-4.11.1: Lenses, Folds and Traversals</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>(C) 2012-2015 Edward Kmett</td></tr><tr><th>License</th><td>BSD-style (see the file LICENSE)</td></tr><tr><th>Maintainer</th><td>Edward Kmett <ekmett@gmail.com></td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Portability</th><td>non-portable</td></tr><tr><th>Safe Haskell</th><td>Safe</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Control.Lens.Internal.Getter</p></div><div id="description"><p class="caption">Description</p><div class="doc empty"> </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"><a href="#v:coerce">coerce</a> :: (<a href="Control-Lens-Getter.html#t:Contravariant">Contravariant</a> f, <a href="file:///usr/local/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Functor.html#t:Functor">Functor</a> f) => f a -> f b</li><li class="src short"><a href="#v:noEffect">noEffect</a> :: (<a href="Control-Lens-Getter.html#t:Contravariant">Contravariant</a> f, <a href="file:///usr/local/share/doc/ghc/html/libraries/base-4.8.0.0/Control-Applicative.html#t:Applicative">Applicative</a> f) => f a</li><li class="src short"><span class="keyword">newtype</span> <a href="#t:AlongsideLeft">AlongsideLeft</a> f b a = <a href="#v:AlongsideLeft">AlongsideLeft</a> {<ul class="subs"><li><a href="#v:getAlongsideLeft">getAlongsideLeft</a> :: f (a, b)</li></ul>}</li><li class="src short"><span class="keyword">newtype</span> <a href="#t:AlongsideRight">AlongsideRight</a> f a b = <a href="#v:AlongsideRight">AlongsideRight</a> {<ul class="subs"><li><a href="#v:getAlongsideRight">getAlongsideRight</a> :: f (a, b)</li></ul>}</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:coerce" class="def">coerce</a> :: (<a href="Control-Lens-Getter.html#t:Contravariant">Contravariant</a> f, <a href="file:///usr/local/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Functor.html#t:Functor">Functor</a> f) => f a -> f b <a href="src/Control-Lens-Internal-Getter.html#coerce" class="link">Source</a></p><div class="doc"><p>A <code><a href="file:///usr/local/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Functor.html#t:Functor">Functor</a></code> you can <code><a href="Control-Lens-Internal-Getter.html#v:coerce">coerce</a></code> ignores its argument, which it carries
solely as a phantom type parameter.</p><p>By the <code><a href="file:///usr/local/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Functor.html#t:Functor">Functor</a></code> and <code><a href="Control-Lens-Getter.html#t:Contravariant">Contravariant</a></code> laws, an instance of both will
necessarily satisfy:</p><pre><code><a href="file:///usr/local/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Function.html#v:id">id</a></code> = <code><a href="file:///usr/local/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Functor.html#v:fmap">fmap</a></code> f = <code><a href="Control-Lens-Internal-Getter.html#v:coerce">coerce</a></code> = <code><a href="Control-Lens-Getter.html#v:contramap">contramap</a></code> g</pre></div></div><div class="top"><p class="src"><a name="v:noEffect" class="def">noEffect</a> :: (<a href="Control-Lens-Getter.html#t:Contravariant">Contravariant</a> f, <a href="file:///usr/local/share/doc/ghc/html/libraries/base-4.8.0.0/Control-Applicative.html#t:Applicative">Applicative</a> f) => f a <a href="src/Control-Lens-Internal-Getter.html#noEffect" class="link">Source</a></p><div class="doc"><p>The <code><a href="file:///usr/local/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Monoid.html#v:mempty">mempty</a></code> equivalent for a <code><a href="Control-Lens-Getter.html#t:Contravariant">Contravariant</a></code> <code><a href="file:///usr/local/share/doc/ghc/html/libraries/base-4.8.0.0/Control-Applicative.html#t:Applicative">Applicative</a></code> <code><a href="file:///usr/local/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Functor.html#t:Functor">Functor</a></code>.</p></div></div><div class="top"><p class="src"><span class="keyword">newtype</span> <a name="t:AlongsideLeft" class="def">AlongsideLeft</a> f b a <a href="src/Control-Lens-Internal-Getter.html#AlongsideLeft" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:AlongsideLeft" class="def">AlongsideLeft</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:getAlongsideLeft" class="def">getAlongsideLeft</a> :: f (a, b)</dt><dd class="doc empty"> </dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:AlongsideLeft" class="caption collapser" onclick="toggleSection('i:AlongsideLeft')">Instances</p><div id="section.i:AlongsideLeft" class="show"><table><tr><td class="src"><a href="file:///usr/local/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Functor.html#t:Functor">Functor</a> f => <a href="Control-Lens-Review.html#t:Bifunctor">Bifunctor</a> (<a href="Control-Lens-Internal-Getter.html#t:AlongsideLeft">AlongsideLeft</a> f) <a href="src/Control-Lens-Internal-Getter.html#line-80" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Control-Lens-Traversal.html#t:Traversable">Traversable</a> f => Bitraversable (<a href="Control-Lens-Internal-Getter.html#t:AlongsideLeft">AlongsideLeft</a> f) <a href="src/Control-Lens-Internal-Getter.html#line-88" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///usr/local/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Foldable.html#t:Foldable">Foldable</a> f => Bifoldable (<a href="Control-Lens-Internal-Getter.html#t:AlongsideLeft">AlongsideLeft</a> f) <a href="src/Control-Lens-Internal-Getter.html#line-84" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///usr/local/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Functor.html#t:Functor">Functor</a> f => <a href="file:///usr/local/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Functor.html#t:Functor">Functor</a> (<a href="Control-Lens-Internal-Getter.html#t:AlongsideLeft">AlongsideLeft</a> f b) <a href="src/Control-Lens-Internal-Getter.html#line-56" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///usr/local/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Foldable.html#t:Foldable">Foldable</a> f => <a href="file:///usr/local/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Foldable.html#t:Foldable">Foldable</a> (<a href="Control-Lens-Internal-Getter.html#t:AlongsideLeft">AlongsideLeft</a> f b) <a href="src/Control-Lens-Internal-Getter.html#line-64" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Control-Lens-Traversal.html#t:Traversable">Traversable</a> f => <a href="Control-Lens-Traversal.html#t:Traversable">Traversable</a> (<a href="Control-Lens-Internal-Getter.html#t:AlongsideLeft">AlongsideLeft</a> f b) <a href="src/Control-Lens-Internal-Getter.html#line-68" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Control-Lens-Getter.html#t:Contravariant">Contravariant</a> f => <a href="Control-Lens-Getter.html#t:Contravariant">Contravariant</a> (<a href="Control-Lens-Internal-Getter.html#t:AlongsideLeft">AlongsideLeft</a> f b) <a href="src/Control-Lens-Internal-Getter.html#line-60" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src">Foldable1 f => Foldable1 (<a href="Control-Lens-Internal-Getter.html#t:AlongsideLeft">AlongsideLeft</a> f b) <a href="src/Control-Lens-Internal-Getter.html#line-72" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Control-Lens-Traversal.html#t:Traversable1">Traversable1</a> f => <a href="Control-Lens-Traversal.html#t:Traversable1">Traversable1</a> (<a href="Control-Lens-Internal-Getter.html#t:AlongsideLeft">AlongsideLeft</a> f b) <a href="src/Control-Lens-Internal-Getter.html#line-76" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///usr/local/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Read.html#t:Read">Read</a> (f (a, b)) => <a href="file:///usr/local/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Read.html#t:Read">Read</a> (<a href="Control-Lens-Internal-Getter.html#t:AlongsideLeft">AlongsideLeft</a> f b a) <a href="src/Control-Lens-Internal-Getter.html#line-54" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///usr/local/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> (f (a, b)) => <a href="file:///usr/local/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> (<a href="Control-Lens-Internal-Getter.html#t:AlongsideLeft">AlongsideLeft</a> f b a) <a href="src/Control-Lens-Internal-Getter.html#line-53" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">newtype</span> <a name="t:AlongsideRight" class="def">AlongsideRight</a> f a b <a href="src/Control-Lens-Internal-Getter.html#AlongsideRight" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:AlongsideRight" class="def">AlongsideRight</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:getAlongsideRight" class="def">getAlongsideRight</a> :: f (a, b)</dt><dd class="doc empty"> </dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:AlongsideRight" class="caption collapser" onclick="toggleSection('i:AlongsideRight')">Instances</p><div id="section.i:AlongsideRight" class="show"><table><tr><td class="src"><a href="file:///usr/local/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Functor.html#t:Functor">Functor</a> f => <a href="Control-Lens-Review.html#t:Bifunctor">Bifunctor</a> (<a href="Control-Lens-Internal-Getter.html#t:AlongsideRight">AlongsideRight</a> f) <a href="src/Control-Lens-Internal-Getter.html#line-121" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Control-Lens-Traversal.html#t:Traversable">Traversable</a> f => Bitraversable (<a href="Control-Lens-Internal-Getter.html#t:AlongsideRight">AlongsideRight</a> f) <a href="src/Control-Lens-Internal-Getter.html#line-129" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///usr/local/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Foldable.html#t:Foldable">Foldable</a> f => Bifoldable (<a href="Control-Lens-Internal-Getter.html#t:AlongsideRight">AlongsideRight</a> f) <a href="src/Control-Lens-Internal-Getter.html#line-125" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///usr/local/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Functor.html#t:Functor">Functor</a> f => <a href="file:///usr/local/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Functor.html#t:Functor">Functor</a> (<a href="Control-Lens-Internal-Getter.html#t:AlongsideRight">AlongsideRight</a> f a) <a href="src/Control-Lens-Internal-Getter.html#line-97" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///usr/local/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Foldable.html#t:Foldable">Foldable</a> f => <a href="file:///usr/local/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Foldable.html#t:Foldable">Foldable</a> (<a href="Control-Lens-Internal-Getter.html#t:AlongsideRight">AlongsideRight</a> f a) <a href="src/Control-Lens-Internal-Getter.html#line-105" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Control-Lens-Traversal.html#t:Traversable">Traversable</a> f => <a href="Control-Lens-Traversal.html#t:Traversable">Traversable</a> (<a href="Control-Lens-Internal-Getter.html#t:AlongsideRight">AlongsideRight</a> f a) <a href="src/Control-Lens-Internal-Getter.html#line-109" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Control-Lens-Getter.html#t:Contravariant">Contravariant</a> f => <a href="Control-Lens-Getter.html#t:Contravariant">Contravariant</a> (<a href="Control-Lens-Internal-Getter.html#t:AlongsideRight">AlongsideRight</a> f a) <a href="src/Control-Lens-Internal-Getter.html#line-101" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src">Foldable1 f => Foldable1 (<a href="Control-Lens-Internal-Getter.html#t:AlongsideRight">AlongsideRight</a> f a) <a href="src/Control-Lens-Internal-Getter.html#line-113" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Control-Lens-Traversal.html#t:Traversable1">Traversable1</a> f => <a href="Control-Lens-Traversal.html#t:Traversable1">Traversable1</a> (<a href="Control-Lens-Internal-Getter.html#t:AlongsideRight">AlongsideRight</a> f a) <a href="src/Control-Lens-Internal-Getter.html#line-117" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///usr/local/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Read.html#t:Read">Read</a> (f (a, b)) => <a href="file:///usr/local/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Read.html#t:Read">Read</a> (<a href="Control-Lens-Internal-Getter.html#t:AlongsideRight">AlongsideRight</a> f a b) <a href="src/Control-Lens-Internal-Getter.html#line-95" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///usr/local/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> (f (a, b)) => <a href="file:///usr/local/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> (<a href="Control-Lens-Internal-Getter.html#t:AlongsideRight">AlongsideRight</a> f a b) <a href="src/Control-Lens-Internal-Getter.html#line-94" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>