/usr/share/doc/libghc-incremental-parser-doc/html/Control-Applicative-Monoid.html is in libghc-incremental-parser-doc 0.2.5.2-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 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.Applicative.Monoid</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_Control-Applicative-Monoid.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Control-Applicative-Monoid.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">incremental-parser-0.2.5.2: Generic parser library capable of providing partial results from partial input.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>Safe</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">Control.Applicative.Monoid</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>This module defines the <code><a href="Control-Applicative-Monoid.html#t:MonoidApplicative">MonoidApplicative</a></code> and <code><a href="Control-Applicative-Monoid.html#t:MonoidAlternative">MonoidAlternative</a></code> type classes. Their methods are specialized
forms of the standard <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Applicative.html#t:Applicative">Applicative</a></code> and <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Applicative.html#t:Alternative">Alternative</a></code> class methods. Instances of these classes should override the
default method implementations with more efficient ones.</p></div></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">class</span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Applicative.html#t:Applicative">Applicative</a> f => <a id="t:MonoidApplicative" class="def">MonoidApplicative</a> f <span class="keyword">where</span> <a href="src/Control-Applicative-Monoid.html#MonoidApplicative" class="link">Source</a> <a href="#t:MonoidApplicative" class="selflink">#</a></p><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:-43--60--42--62-" class="def">(+<*>)</a> :: f (a -> a) -> f a -> f a <span class="fixity">infixl 4</span><span class="rightedge"></span> <a href="src/Control-Applicative-Monoid.html#%2B%3C%2A%3E" class="link">Source</a> <a href="#v:-43--60--42--62-" class="selflink">#</a></p><div class="doc"><p>A variant of the Applicative's <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Applicative.html#v:-60--42--62-"><*></a></code> operator specialized for endomorphic functions.</p></div><p class="src"><a id="v:-62--60-" class="def">(><)</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Monoid.html#t:Monoid">Monoid</a> a => f a -> f a -> f a <span class="fixity">infixl 5</span><span class="rightedge"></span> <a href="src/Control-Applicative-Monoid.html#%3E%3C" class="link">Source</a> <a href="#v:-62--60-" class="selflink">#</a></p><div class="doc"><p>Lifted and potentially optimized monoid <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Monoid.html#v:mappend">mappend</a></code> operation from the parameter type.</p></div></div><div class="subs instances"><p id="control.i:MonoidApplicative" class="caption collapser" onclick="toggleSection('i:MonoidApplicative')">Instances</p><div id="section.i:MonoidApplicative" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MonoidApplicative:MonoidApplicative:1" class="instance expander" onclick="toggleSection('i:ic:MonoidApplicative:MonoidApplicative:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Monoid.html#t:Monoid">Monoid</a> s => <a href="Control-Applicative-Monoid.html#t:MonoidApplicative">MonoidApplicative</a> (<a href="Text-ParserCombinators-Incremental.html#t:Parser">Parser</a> t s)</span> <a href="src/Control-Applicative-Monoid.html#line-159" class="link">Source</a> <a href="#t:MonoidApplicative" class="selflink">#</a></td><td class="doc"><p>The <code><a href="Control-Applicative-Monoid.html#v:-43--60--42--62-">+<*></a></code> operator is specialized to return incremental parsing results.</p></td></tr><tr><td colspan="2"><div id="section.i:ic:MonoidApplicative:MonoidApplicative:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-43--60--42--62-">(+<*>)</a> :: <a href="Text-ParserCombinators-Incremental.html#t:Parser">Parser</a> t s (a -> a) -> <a href="Text-ParserCombinators-Incremental.html#t:Parser">Parser</a> t s a -> <a href="Text-ParserCombinators-Incremental.html#t:Parser">Parser</a> t s a <a href="src/Control-Applicative-Monoid.html#%2B%3C%2A%3E" class="link">Source</a> <a href="#v:-43--60--42--62-" class="selflink">#</a></p><p class="src"><a href="#v:-62--60-">(><)</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Monoid.html#t:Monoid">Monoid</a> a => <a href="Text-ParserCombinators-Incremental.html#t:Parser">Parser</a> t s a -> <a href="Text-ParserCombinators-Incremental.html#t:Parser">Parser</a> t s a -> <a href="Text-ParserCombinators-Incremental.html#t:Parser">Parser</a> t s a <a href="src/Control-Applicative-Monoid.html#%3E%3C" class="link">Source</a> <a href="#v:-62--60-" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Applicative.html#t:Alternative">Alternative</a> f, <a href="Control-Applicative-Monoid.html#t:MonoidApplicative">MonoidApplicative</a> f) => <a id="t:MonoidAlternative" class="def">MonoidAlternative</a> f <span class="keyword">where</span> <a href="src/Control-Applicative-Monoid.html#MonoidAlternative" class="link">Source</a> <a href="#t:MonoidAlternative" class="selflink">#</a></p><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:moptional" class="def">moptional</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Monoid.html#t:Monoid">Monoid</a> a => f a -> f a <a href="src/Control-Applicative-Monoid.html#moptional" class="link">Source</a> <a href="#v:moptional" class="selflink">#</a></p><div class="doc"><p>Like <code>optional</code>, but restricted to <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Monoid.html#t:Monoid">Monoid</a></code> results.</p></div><p class="src"><a id="v:concatMany" class="def">concatMany</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Monoid.html#t:Monoid">Monoid</a> a => f a -> f a <a href="src/Control-Applicative-Monoid.html#concatMany" class="link">Source</a> <a href="#v:concatMany" class="selflink">#</a></p><div class="doc"><p>Zero or more argument occurrences like <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Applicative.html#v:many">many</a></code>, but concatenated.</p></div><p class="src"><a id="v:concatSome" class="def">concatSome</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Monoid.html#t:Monoid">Monoid</a> a => f a -> f a <a href="src/Control-Applicative-Monoid.html#concatSome" class="link">Source</a> <a href="#v:concatSome" class="selflink">#</a></p><div class="doc"><p>One or more argument occurrences like <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Applicative.html#v:some">some</a></code>, but concatenated.</p></div></div><div class="subs instances"><p id="control.i:MonoidAlternative" class="caption collapser" onclick="toggleSection('i:MonoidAlternative')">Instances</p><div id="section.i:MonoidAlternative" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MonoidAlternative:MonoidAlternative:1" class="instance expander" onclick="toggleSection('i:ic:MonoidAlternative:MonoidAlternative:1')"></span> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Applicative.html#t:Alternative">Alternative</a> (<a href="Text-ParserCombinators-Incremental.html#t:Parser">Parser</a> t s), <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Monoid.html#t:Monoid">Monoid</a> s) => <a href="Control-Applicative-Monoid.html#t:MonoidAlternative">MonoidAlternative</a> (<a href="Text-ParserCombinators-Incremental.html#t:Parser">Parser</a> t s)</span> <a href="src/Control-Applicative-Monoid.html#line-181" class="link">Source</a> <a href="#t:MonoidAlternative" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:MonoidAlternative:MonoidAlternative:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:moptional">moptional</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Monoid.html#t:Monoid">Monoid</a> a => <a href="Text-ParserCombinators-Incremental.html#t:Parser">Parser</a> t s a -> <a href="Text-ParserCombinators-Incremental.html#t:Parser">Parser</a> t s a <a href="src/Control-Applicative-Monoid.html#moptional" class="link">Source</a> <a href="#v:moptional" class="selflink">#</a></p><p class="src"><a href="#v:concatMany">concatMany</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Monoid.html#t:Monoid">Monoid</a> a => <a href="Text-ParserCombinators-Incremental.html#t:Parser">Parser</a> t s a -> <a href="Text-ParserCombinators-Incremental.html#t:Parser">Parser</a> t s a <a href="src/Control-Applicative-Monoid.html#concatMany" class="link">Source</a> <a href="#v:concatMany" class="selflink">#</a></p><p class="src"><a href="#v:concatSome">concatSome</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Monoid.html#t:Monoid">Monoid</a> a => <a href="Text-ParserCombinators-Incremental.html#t:Parser">Parser</a> t s a -> <a href="Text-ParserCombinators-Incremental.html#t:Parser">Parser</a> t s a <a href="src/Control-Applicative-Monoid.html#concatSome" class="link">Source</a> <a href="#v:concatSome" class="selflink">#</a></p></div></div></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.17.3</p></div></body></html>
|