-
Notifications
You must be signed in to change notification settings - Fork 0
/
Eta-Classes-Functor.html
16 lines (16 loc) · 30.5 KB
/
Eta-Classes-Functor.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!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>Eta.Classes.Functor</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Eta-Classes-Functor.html");};
//]]>
</script></head><body class="no-frame"><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption empty"> </p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>Safe</td></tr></table><p class="caption">Eta.Classes.Functor</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Map forward</a></li><li><a href="#g:2">Map backwards</a></li><li><a href="#g:3">Discard</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>The <code><a href="Eta-Classes-Functor.html#t:Functor">Functor</a></code> type class defines that a type
can have a <code><a href="Eta-Classes-Functor.html#v:map">map</a></code> operation which can be used
to map a function over the elements of it.</p><p>The list and the <code><a href="Eta-Types-Maybe.html#t:Maybe">Maybe</a></code> types are examples of
instances of <code><a href="Eta-Classes-Functor.html#t:Functor">Functor</a></code>.</p><p><em>Mnemonic: Mappable</em></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"><a href="#v:map">map</a> :: <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> f => (a -> b) -> f a -> f b</li><li class="src short"><a href="#v:-124--36--62-">(|$>)</a> :: <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> f => f a -> (a -> b) -> f b</li><li class="src short"><a href="#v:-60--36--124-">(<$|)</a> :: <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> f => (a -> b) -> f a -> f b</li><li class="src short"><a href="#v:discard">discard</a> :: <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> f => f a -> f ()</li><li class="src short"><span class="keyword">class</span> <a href="#t:Functor">Functor</a> f <span class="keyword">where</span><ul class="subs"></ul></li></ul></div><div id="interface"><h1>Documentation</h1><div class="doc"><pre class="screen"><code class="prompt">>>> </code><strong class="userinput"><code>import Prelude ((+))
</code></strong></pre></div><div class="top"><p class="src"><a id="v:map" class="def">map</a> :: <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> f => (a -> b) -> f a -> f b <a href="#v:map" class="selflink">#</a></p><div class="doc"><p>Maps a function over a value</p><pre class="screen"><code class="prompt">>>> </code><strong class="userinput"><code>map (+1) [1,2,3]
</code></strong>[2,3,4]
</pre></div></div><h3 id="g:1">Map forward</h3><div class="top"><p class="src"><a id="v:-124--36--62-" class="def">(|$>)</a> :: <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> f => f a -> (a -> b) -> f b <a href="#v:-124--36--62-" class="selflink">#</a></p><div class="doc"><p>Maps the function of the right to the Functor of the left:</p><pre class="screen"><code class="prompt">>>> </code><strong class="userinput"><code>[1,2,3] |$> (+ 1)
</code></strong>[2,3,4]
</pre></div></div><h3 id="g:2">Map backwards</h3><div class="top"><p class="src"><a id="v:-60--36--124-" class="def">(<$|)</a> :: <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> f => (a -> b) -> f a -> f b <a href="#v:-60--36--124-" class="selflink">#</a></p><div class="doc"><p>Maps the function of the left to the Functor of the right:</p><pre class="screen"><code class="prompt">>>> </code><strong class="userinput"><code>(+1) <$| [1,2,3]
</code></strong>[2,3,4]
</pre></div></div><h3 id="g:3">Discard</h3><div class="top"><p class="src"><a id="v:discard" class="def">discard</a> :: <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> f => f a -> f () <a href="#v:discard" class="selflink">#</a></p><div class="doc"><p>Discards the value inside of the functor.</p><pre class="screen"><code class="prompt">>>> </code><strong class="userinput"><code>discard [1,2,3]
</code></strong>[(),(),()]
</pre></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a id="t:Functor" class="def">Functor</a> f <span class="keyword">where</span> <a href="#t:Functor" class="selflink">#</a></p><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="Eta-Classes-Functor.html#v:fmap">fmap</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:fmap" class="def">fmap</a> :: (a -> b) -> f a -> f b <a href="#v:fmap" class="selflink">#</a></p></div><div class="subs instances"><p id="control.i:Functor" class="caption collapser" onclick="toggleSection('i:Functor')">Instances</p><div id="section.i:Functor" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Functor:Functor:1" class="instance expander" onclick="toggleSection('i:ic:Functor:Functor:1')"></span> <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> []</span></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Functor:Functor:1" 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] -> [b] <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> [b] -> [a]</p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Functor:Functor:2" class="instance expander" onclick="toggleSection('i:ic:Functor:Functor:2')"></span> <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> <a href="Eta-Types-Maybe.html#t:Maybe">Maybe</a></span></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Functor:Functor:2" 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="Eta-Types-Maybe.html#t:Maybe">Maybe</a> a -> <a href="Eta-Types-Maybe.html#t:Maybe">Maybe</a> b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> <a href="Eta-Types-Maybe.html#t:Maybe">Maybe</a> b -> <a href="Eta-Types-Maybe.html#t:Maybe">Maybe</a> a</p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Functor:Functor:3" class="instance expander" onclick="toggleSection('i:ic:Functor:Functor:3')"></span> <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> <a href="Eta-Types-IO.html#t:IO">IO</a></span></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Functor:Functor:3" 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="Eta-Types-IO.html#t:IO">IO</a> a -> <a href="Eta-Types-IO.html#t:IO">IO</a> b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> <a href="Eta-Types-IO.html#t:IO">IO</a> b -> <a href="Eta-Types-IO.html#t:IO">IO</a> a</p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Functor:Functor:4" class="instance expander" onclick="toggleSection('i:ic:Functor:Functor:4')"></span> <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> V1</span></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Functor: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) -> V1 a -> V1 b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> V1 b -> V1 a</p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Functor:Functor:5" class="instance expander" onclick="toggleSection('i:ic:Functor:Functor:5')"></span> <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> U1</span></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Functor:Functor:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -> b) -> U1 a -> U1 b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> U1 b -> U1 a</p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Functor:Functor:6" class="instance expander" onclick="toggleSection('i:ic:Functor:Functor:6')"></span> <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> Par1</span></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Functor:Functor:6" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -> b) -> Par1 a -> Par1 b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> Par1 b -> Par1 a</p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Functor:Functor:7" class="instance expander" onclick="toggleSection('i:ic:Functor:Functor:7')"></span> <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> Handler</span></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Functor:Functor:7" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -> b) -> Handler a -> Handler b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> Handler b -> Handler a</p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Functor:Functor:8" class="instance expander" onclick="toggleSection('i:ic:Functor:Functor:8')"></span> <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> Sum</span></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Functor:Functor:8" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -> b) -> Sum a -> Sum b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> Sum b -> Sum a</p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Functor:Functor:9" class="instance expander" onclick="toggleSection('i:ic:Functor:Functor:9')"></span> <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> Product</span></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Functor:Functor:9" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -> b) -> Product a -> Product b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> Product b -> Product a</p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Functor:Functor:10" class="instance expander" onclick="toggleSection('i:ic:Functor:Functor:10')"></span> <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> Last</span></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Functor:Functor:10" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -> b) -> Last a -> Last b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> Last b -> Last a</p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Functor:Functor:11" class="instance expander" onclick="toggleSection('i:ic:Functor:Functor:11')"></span> <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> First</span></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Functor:Functor:11" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -> b) -> First a -> First b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> First b -> First a</p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Functor:Functor:12" class="instance expander" onclick="toggleSection('i:ic:Functor:Functor:12')"></span> <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> Dual</span></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Functor:Functor:12" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -> b) -> Dual a -> Dual b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> Dual b -> Dual a</p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Functor:Functor:13" class="instance expander" onclick="toggleSection('i:ic:Functor:Functor:13')"></span> <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> ZipList</span></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Functor:Functor:13" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -> b) -> ZipList a -> ZipList b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> ZipList b -> ZipList a</p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Functor:Functor:14" class="instance expander" onclick="toggleSection('i:ic:Functor:Functor:14')"></span> <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> Id</span></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Functor:Functor:14" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -> b) -> Id a -> Id b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> Id b -> Id a</p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Functor:Functor:15" class="instance expander" onclick="toggleSection('i:ic:Functor:Functor:15')"></span> <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> ((->) r)</span></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Functor:Functor:15" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -> b) -> (r -> a) -> r -> b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> (r -> b) -> r -> a</p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Functor:Functor:16" class="instance expander" onclick="toggleSection('i:ic:Functor:Functor:16')"></span> <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> (<a href="Eta-Types-Either.html#t:Either">Either</a> a)</span></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Functor:Functor:16" 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="Eta-Types-Either.html#t:Either">Either</a> a a -> <a href="Eta-Types-Either.html#t:Either">Either</a> a b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> <a href="Eta-Types-Either.html#t:Either">Either</a> a b -> <a href="Eta-Types-Either.html#t:Either">Either</a> a a</p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Functor:Functor:17" class="instance expander" onclick="toggleSection('i:ic:Functor:Functor:17')"></span> <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> f => <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> (Rec1 f)</span></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Functor:Functor:17" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -> b) -> Rec1 f a -> Rec1 f b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> Rec1 f b -> Rec1 f a</p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Functor:Functor:18" class="instance expander" onclick="toggleSection('i:ic:Functor:Functor:18')"></span> <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> (URec <a href="Eta-Types-Char.html#t:Char">Char</a>)</span></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Functor:Functor:18" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -> b) -> URec <a href="Eta-Types-Char.html#t:Char">Char</a> a -> URec <a href="Eta-Types-Char.html#t:Char">Char</a> b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> URec <a href="Eta-Types-Char.html#t:Char">Char</a> b -> URec <a href="Eta-Types-Char.html#t:Char">Char</a> a</p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Functor:Functor:19" class="instance expander" onclick="toggleSection('i:ic:Functor:Functor:19')"></span> <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> (URec Double)</span></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Functor:Functor:19" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -> b) -> URec Double a -> URec Double b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> URec Double b -> URec Double a</p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Functor:Functor:20" class="instance expander" onclick="toggleSection('i:ic:Functor:Functor:20')"></span> <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> (URec Float)</span></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Functor:Functor:20" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -> b) -> URec Float a -> URec Float b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> URec Float b -> URec Float a</p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Functor:Functor:21" class="instance expander" onclick="toggleSection('i:ic:Functor:Functor:21')"></span> <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> (URec <a href="Eta-Types.html#t:Int">Int</a>)</span></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Functor:Functor:21" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -> b) -> URec <a href="Eta-Types.html#t:Int">Int</a> a -> URec <a href="Eta-Types.html#t:Int">Int</a> b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> URec <a href="Eta-Types.html#t:Int">Int</a> b -> URec <a href="Eta-Types.html#t:Int">Int</a> a</p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Functor:Functor:22" class="instance expander" onclick="toggleSection('i:ic:Functor:Functor:22')"></span> <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> (URec Word)</span></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Functor:Functor:22" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -> b) -> URec Word a -> URec Word b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> URec Word b -> URec Word a</p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Functor:Functor:23" class="instance expander" onclick="toggleSection('i:ic:Functor:Functor:23')"></span> <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> (URec (Ptr ()))</span></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Functor:Functor:23" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -> b) -> URec (Ptr ()) a -> URec (Ptr ()) b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> URec (Ptr ()) b -> URec (Ptr ()) a</p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Functor:Functor:24" class="instance expander" onclick="toggleSection('i:ic:Functor:Functor:24')"></span> <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> ((,) a)</span></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Functor:Functor:24" 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, a) -> (a, b) <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> (a, b) -> (a, a)</p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Functor:Functor:25" class="instance expander" onclick="toggleSection('i:ic:Functor:Functor:25')"></span> <a href="Eta-Classes-Monad.html#t:Monad">Monad</a> m => <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> (WrappedMonad m)</span></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Functor:Functor:25" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -> b) -> WrappedMonad m a -> WrappedMonad m b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> WrappedMonad m b -> WrappedMonad m a</p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Functor:Functor:26" class="instance expander" onclick="toggleSection('i:ic:Functor:Functor:26')"></span> <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> (Proxy *)</span></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Functor:Functor:26" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -> b) -> Proxy * a -> Proxy * b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> Proxy * b -> Proxy * a</p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Functor:Functor:27" class="instance expander" onclick="toggleSection('i:ic:Functor:Functor:27')"></span> <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> (StateR s)</span></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Functor:Functor:27" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -> b) -> StateR s a -> StateR s b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> StateR s b -> StateR s a</p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Functor:Functor:28" class="instance expander" onclick="toggleSection('i:ic:Functor:Functor:28')"></span> <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> (StateL s)</span></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Functor:Functor:28" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -> b) -> StateL s a -> StateL s b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> StateL s b -> StateL s a</p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Functor:Functor:29" class="instance expander" onclick="toggleSection('i:ic:Functor:Functor:29')"></span> <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> (K1 i c)</span></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Functor:Functor:29" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -> b) -> K1 i c a -> K1 i c b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> K1 i c b -> K1 i c a</p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Functor:Functor:30" class="instance expander" onclick="toggleSection('i:ic:Functor:Functor:30')"></span> (<a href="Eta-Classes-Functor.html#t:Functor">Functor</a> g, <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> f) => <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> ((:+:) f g)</span></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Functor:Functor:30" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -> b) -> (f :+: g) a -> (f :+: g) b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> (f :+: g) b -> (f :+: g) a</p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Functor:Functor:31" class="instance expander" onclick="toggleSection('i:ic:Functor:Functor:31')"></span> (<a href="Eta-Classes-Functor.html#t:Functor">Functor</a> g, <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> f) => <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> ((:*:) f g)</span></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Functor:Functor:31" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -> b) -> (f :*: g) a -> (f :*: g) b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> (f :*: g) b -> (f :*: g) a</p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Functor:Functor:32" class="instance expander" onclick="toggleSection('i:ic:Functor:Functor:32')"></span> (<a href="Eta-Classes-Functor.html#t:Functor">Functor</a> g, <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> f) => <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> ((:.:) f g)</span></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Functor:Functor:32" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -> b) -> (f :.: g) a -> (f :.: g) b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> (f :.: g) b -> (f :.: g) a</p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Functor:Functor:33" class="instance expander" onclick="toggleSection('i:ic:Functor:Functor:33')"></span> <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> f => <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> (Alt * f)</span></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Functor:Functor:33" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -> b) -> Alt * f a -> Alt * f b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> Alt * f b -> Alt * f a</p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Functor:Functor:34" class="instance expander" onclick="toggleSection('i:ic:Functor:Functor:34')"></span> Arrow a => <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> (WrappedArrow a b)</span></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Functor:Functor:34" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -> b) -> WrappedArrow a b a -> WrappedArrow a b b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> WrappedArrow a b b -> WrappedArrow a b a</p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Functor:Functor:35" class="instance expander" onclick="toggleSection('i:ic:Functor:Functor:35')"></span> <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> f => <a href="Eta-Classes-Functor.html#t:Functor">Functor</a> (M1 i c f)</span></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Functor:Functor:35" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -> b) -> M1 i c f a -> M1 i c f b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> M1 i c f b -> M1 i c f 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.4</p></div></body></html>