<div dir="ltr"><div>Hi,</div><div><pre style="color:rgb(0,0,0)"><span class="" style="color:blue">instance</span> <span class="">Monad</span> <span class="">[]</span>  <span class="" style="color:blue">where</span>
<a name="line-727"></a>    <span class="" style="color:green">{-# INLINE (>>=) #-}</span>
<a name="line-728"></a>    <span class="">xs</span> <span class="">>>=</span> <span class="">f</span>             <span class="" style="color:red">=</span> <span class="" style="color:red">[</span><span class="">y</span> <span class="" style="color:red">|</span> <span class="">x</span> <span class="" style="color:red"><-</span> <span class="">xs</span><span class="" style="color:red">,</span> <span class="">y</span> <span class="" style="color:red"><-</span> <span class="">f</span> <span class="">x</span><span class="" style="color:red">]</span>
<a name="line-729"></a>    <span class="" style="color:green">{-# INLINE (>>) #-}</span>
<a name="line-730"></a>    <span class="" style="color:red">(</span><span class="">>></span><span class="" style="color:red">)</span> <span class="" style="color:red">=</span> <span class="" style="color:red">(</span><span class="">*></span><span class="" style="color:red">)</span>
<a name="line-731"></a>    <span class="" style="color:green">{-# INLINE return #-}</span>
<a name="line-732"></a>    <span class="">return</span> <span class="">x</span>            <span class="" style="color:red">=</span> <span class="" style="color:red">[</span><span class="">x</span><span class="" style="color:red">]</span>
<a name="line-733"></a>    <span class="" style="color:green">{-# INLINE fail #-}</span>
<a name="line-734"></a>    <span class="">fail</span> <span class="" style="color:blue">_</span>              <span class="" style="color:red">=</span> <span class="">[]</span></pre></div><div>source: <a href="https://hackage.haskell.org/package/base-4.8.0.0/docs/src/GHC-Base.html#line-726">https://hackage.haskell.org/package/base-4.8.0.0/docs/src/GHC-Base.html#line-726</a></div><div><br></div><div>Found link on: <a href="https://hackage.haskell.org/package/base-4.8.0.0/docs/Control-Monad.html">https://hackage.haskell.org/package/base-4.8.0.0/docs/Control-Monad.html</a> by scrolling down to the list of monad instances.</div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 3, 2015 at 6:48 AM, Stanislaw Findeisen <span dir="ltr"><<a href="mailto:stf.list.haskell@eisenbits.com" target="_blank">stf.list.haskell@eisenbits.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi<br>
<br>
Where is the definition of (>>=) for lists? I was trying to locate it<br>
using Hoogle but no luck. :(<br>
<span class=""><font color="#888888"><br>
--<br>
<a href="http://people.eisenbits.com/~stf/" target="_blank">http://people.eisenbits.com/~stf/</a><br>
<a href="http://www.eisenbits.com/" target="_blank">http://www.eisenbits.com/</a><br>
<br>
OpenPGP: 9EC2 5620 2355 B1DC 4A8F  8C79 0EC7 C214 E5AE 3B4E<br>
<br>
</font></span><br>_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
<br></blockquote></div><br></div></div>