Permalink
Browse files

updated haddocks

  • Loading branch information...
1 parent aa4d22f commit 1be0c72e13249e503dec47ffdd49365bc3e220b9 @ekmett committed Mar 26, 2013
Showing with 6,624 additions and 6,702 deletions.
  1. +8 −2 Control-Lens-Action.html
  2. +5 −2 Control-Lens-At.html
  3. +6 −3 Control-Lens-Fold.html
  4. +5 −5 Control-Lens-Indexed.html
  5. +2 −2 Control-Lens-Internal-Indexed.html
  6. +8 −2 Control-Lens-Internal-Review.html
  7. +3 −3 Control-Lens-Internal-Setter.html
  8. +26 −6 Control-Lens-Iso.html
  9. +3 −3 Control-Lens-Lens.html
  10. +8 −2 Control-Lens-Operators.html
  11. +2 −2 Control-Lens-Plated.html
  12. +2 −2 Control-Lens-Prism.html
  13. +7 −2 Control-Lens-Review.html
  14. +3 −3 Control-Lens-Setter.html
  15. +1 −1 Control-Lens-Simple.html
  16. +11 −5 Control-Lens-Traversal.html
  17. +2 −2 Control-Lens.html
  18. BIN Hierarchy.png
  19. +1 −1 doc-index-95.html
  20. +1 −1 doc-index-All.html
  21. +1 −1 doc-index-C.html
  22. +1 −1 doc-index-D.html
  23. +1 −1 doc-index-F.html
  24. +1 −1 doc-index-H.html
  25. +1 −1 doc-index-L.html
  26. +1 −1 doc-index-R.html
  27. +1 −1 doc-index-S.html
  28. +1 −1 index-frames.html
  29. +2 −2 index.html
  30. BIN lens.haddock
  31. +3 −2 mini_Control-Lens-At.html
  32. +2 −1 mini_Control-Lens-Fold.html
  33. +3 −1 mini_Control-Lens-Internal-Review.html
  34. +3 −2 mini_Control-Lens-Iso.html
  35. +1 −1 mini_Control-Lens-Review.html
  36. +1 −1 mini_Control-Lens-Traversal.html
  37. +95 −87 src/Control-Lens-Action.html
  38. +508 −491 src/Control-Lens-At.html
  39. +2,030 −2,274 src/Control-Lens-Fold.html
  40. +486 −505 src/Control-Lens-Indexed.html
  41. +1 −1 src/Control-Lens-Internal-Getter.html
  42. +219 −223 src/Control-Lens-Internal-Indexed.html
  43. +146 −132 src/Control-Lens-Internal-Review.html
  44. +113 −104 src/Control-Lens-Internal-Setter.html
  45. +382 −326 src/Control-Lens-Iso.html
  46. +43 −44 src/Control-Lens-Loupe.html
  47. +2 −2 src/Control-Lens-Plated.html
  48. +206 −204 src/Control-Lens-Review.html
  49. +1,160 −1,167 src/Control-Lens-Setter.html
  50. +97 −74 src/Control-Lens-TH.html
  51. +966 −960 src/Control-Lens-Traversal.html
  52. +43 −41 src/Control-Lens.html
@@ -32,9 +32,15 @@
</code></strong>hello
world
</pre></div></div><div class="top"><p class="src"><a name="v:-94--33--33-" class="def">(^!!)</a> :: <a href="/Library/Frameworks/GHC.framework/Versions/7.4.1-x86_64/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Control-Monad.html#t:Monad">Monad</a> m =&gt; s -&gt; <a href="Control-Lens-Action.html#t:Acting">Acting</a> m [a] s t a b -&gt; m [a]<a href="src/Control-Lens-Action.html#%5E%21%21" class="link">Source</a></p><div class="doc"><p>Perform a <code><a href="Control-Lens-Action.html#t:MonadicFold">MonadicFold</a></code> and collect all of the results in a list.
-</p></div></div><div class="top"><p class="src"><a name="v:-94--33--63-" class="def">(^!?)</a> :: <a href="/Library/Frameworks/GHC.framework/Versions/7.4.1-x86_64/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Control-Monad.html#t:Monad">Monad</a> m =&gt; s -&gt; <a href="Control-Lens-Action.html#t:Acting">Acting</a> m (<a href="Control-Lens-Internal-Fold.html#t:Leftmost">Leftmost</a> a) s t a b -&gt; m (<a href="/Library/Frameworks/GHC.framework/Versions/7.4.1-x86_64/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> a)<a href="src/Control-Lens-Action.html#%5E%21%3F" class="link">Source</a></p><div class="doc"><p>Perform a <code><a href="Control-Lens-Action.html#t:MonadicFold">MonadicFold</a></code> and collect the leftmost result.
+</p><pre class="screen"><code class="prompt">&gt;&gt;&gt; </code><strong class="userinput"><code>[&quot;ab&quot;,&quot;cd&quot;,&quot;ef&quot;]^!!folded.acts
+</code></strong>[&quot;ace&quot;,&quot;acf&quot;,&quot;ade&quot;,&quot;adf&quot;,&quot;bce&quot;,&quot;bcf&quot;,&quot;bde&quot;,&quot;bdf&quot;]
+</pre></div></div><div class="top"><p class="src"><a name="v:-94--33--63-" class="def">(^!?)</a> :: <a href="/Library/Frameworks/GHC.framework/Versions/7.4.1-x86_64/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Control-Monad.html#t:Monad">Monad</a> m =&gt; s -&gt; <a href="Control-Lens-Action.html#t:Acting">Acting</a> m (<a href="Control-Lens-Internal-Fold.html#t:Leftmost">Leftmost</a> a) s t a b -&gt; m (<a href="/Library/Frameworks/GHC.framework/Versions/7.4.1-x86_64/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> a)<a href="src/Control-Lens-Action.html#%5E%21%3F" class="link">Source</a></p><div class="doc"><p>Perform a <code><a href="Control-Lens-Action.html#t:MonadicFold">MonadicFold</a></code> and collect the leftmost result.
</p><p><em>Note:</em> this still causes all effects for all elements.
-</p></div></div><h1 id="g:2">Indexed Actions
+</p><pre class="screen"><code class="prompt">&gt;&gt;&gt; </code><strong class="userinput"><code>[Just 1, Just 2, Just 3]^!?folded.acts
+</code></strong>Just (Just 1)
+<code class="prompt">&gt;&gt;&gt; </code><strong class="userinput"><code>[Just 1, Nothing]^!?folded.acts
+</code></strong>Nothing
+</pre></div></div><h1 id="g:2">Indexed Actions
</h1><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:IndexedAction" class="def">IndexedAction</a> i m s a = <span class="keyword">forall</span> p f r. (<a href="Control-Lens-Internal-Indexed.html#t:Indexable">Indexable</a> i p, <a href="Control-Lens-Action.html#t:Effective">Effective</a> m r f) =&gt; p a (f a) -&gt; s -&gt; f s<a href="src/Control-Lens-Type.html#IndexedAction" class="link">Source</a></p><div class="doc"><p>An <code><a href="Control-Lens-Action.html#t:IndexedAction">IndexedAction</a></code> is an <code><a href="Control-Lens-Type.html#t:IndexedGetter">IndexedGetter</a></code> enriched with access to a <code><a href="/Library/Frameworks/GHC.framework/Versions/7.4.1-x86_64/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Control-Monad.html#t:Monad">Monad</a></code> for side-effects.
</p><p>Every <code><a href="Control-Lens-Type.html#t:Getter">Getter</a></code> can be used as an <code><a href="Control-Lens-Action.html#t:Action">Action</a></code>.
</p><p>You can compose an <code><a href="Control-Lens-Action.html#t:Action">Action</a></code> with another <code><a href="Control-Lens-Action.html#t:Action">Action</a></code> using (<code><a href="/Library/Frameworks/GHC.framework/Versions/7.4.1-x86_64/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Prelude.html#v:.">.</a></code>) from the <code>Prelude</code>.
Oops, something went wrong.

0 comments on commit 1be0c72

Please sign in to comment.