/usr/share/doc/libghc-lens-doc/html/Control-Lens.html is in libghc-lens-doc 3.10-2.
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 | <!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</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.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Control-Lens.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-3.10: Lenses, Folds and Traversals</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>non-portable</td></tr><tr><th>Stability</th><td>experimental</td></tr><tr><th>Maintainer</th><td>Edward Kmett <ekmett@gmail.com></td></tr><tr><th>Safe Haskell</th><td>None</td></tr></table><p class="caption">Control.Lens</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Usage:
</p><p>You can derive lenses automatically for many data types:
</p><pre>
import Control.Lens
data Foo a = Foo { _fooArgs :: [<code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a></code>], _fooValue :: a }
<code><a href="Control-Lens-TH.html#v:makeLenses">makeLenses</a></code> ''Foo
</pre><p>This defines the following lenses:
</p><pre>
fooArgs :: <code><a href="Control-Lens-Type.html#t:Lens-39-">Lens'</a></code> (Foo a) [<code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a></code>]
fooValue :: <code><a href="Control-Lens-Type.html#t:Lens">Lens</a></code> (Foo a) (Foo b) a b
</pre><p>You can then access the value with (<code><a href="Control-Lens-Getter.html#v:-94-.">^.</a></code>) and set the value of the field
with (<code><a href="Control-Lens-Setter.html#v:.-126-">.~</a></code>) and can use almost any other combinator that is re-exported
here on those fields.
</p><p>The combinators here have unusually specific type signatures, so for
particularly tricky ones, the simpler type signatures you might want to
pretend the combinators have are specified as well.
</p><p>More information on how to use lenses is available on the lens wiki:
</p><p><a href="http://github.com/ekmett/lens/wiki">http://github.com/ekmett/lens/wiki</a>
</p><p><img src="Hierarchy.png" />
</p></div></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src">module <a href="Control-Lens-Action.html">Control.Lens.Action</a></p></div><div class="top"><p class="src">module <a href="Control-Lens-At.html">Control.Lens.At</a></p></div><div class="top"><p class="src">module <a href="Control-Lens-Combinators.html">Control.Lens.Combinators</a></p></div><div class="top"><p class="src">module <a href="Control-Lens-Cons.html">Control.Lens.Cons</a></p></div><div class="top"><p class="src">module <a href="Control-Lens-Each.html">Control.Lens.Each</a></p></div><div class="top"><p class="src">module <a href="Control-Lens-Equality.html">Control.Lens.Equality</a></p></div><div class="top"><p class="src">module <a href="Control-Lens-Fold.html">Control.Lens.Fold</a></p></div><div class="top"><p class="src">module <a href="Control-Lens-Getter.html">Control.Lens.Getter</a></p></div><div class="top"><p class="src">module <a href="Control-Lens-Indexed.html">Control.Lens.Indexed</a></p></div><div class="top"><p class="src">module <a href="Control-Lens-Iso.html">Control.Lens.Iso</a></p></div><div class="top"><p class="src">module <a href="Control-Lens-Lens.html">Control.Lens.Lens</a></p></div><div class="top"><p class="src">module <a href="Control-Lens-Level.html">Control.Lens.Level</a></p></div><div class="top"><p class="src">module <a href="Control-Lens-Loupe.html">Control.Lens.Loupe</a></p></div><div class="top"><p class="src">module <a href="Control-Lens-Plated.html">Control.Lens.Plated</a></p></div><div class="top"><p class="src">module <a href="Control-Lens-Prism.html">Control.Lens.Prism</a></p></div><div class="top"><p class="src">module <a href="Control-Lens-Reified.html">Control.Lens.Reified</a></p></div><div class="top"><p class="src">module <a href="Control-Lens-Review.html">Control.Lens.Review</a></p></div><div class="top"><p class="src">module <a href="Control-Lens-Setter.html">Control.Lens.Setter</a></p></div><div class="top"><p class="src">module <a href="Control-Lens-Simple.html">Control.Lens.Simple</a></p></div><div class="top"><p class="src">module <a href="Control-Lens-TH.html">Control.Lens.TH</a></p></div><div class="top"><p class="src">module <a href="Control-Lens-Traversal.html">Control.Lens.Traversal</a></p></div><div class="top"><p class="src">module <a href="Control-Lens-Tuple.html">Control.Lens.Tuple</a></p></div><div class="top"><p class="src">module <a href="Control-Lens-Type.html">Control.Lens.Type</a></p></div><div class="top"><p class="src">module <a href="Control-Lens-Wrapped.html">Control.Lens.Wrapped</a></p></div><div class="top"><p class="src">module <a href="Control-Lens-Zipper.html">Control.Lens.Zipper</a></p></div><div class="top"><p class="src">module <a href="Control-Lens-Zoom.html">Control.Lens.Zoom</a></p></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>
|