<p dir="ltr">You can still omit monads and keep pair of values in tuple and work with them easily, but I understand the point you are making.</p>
<p dir="ltr">But I should note that migration from PHP to Python also takes first impression of complication of many things, where instead of having "just index.php" with everything inlined you would have some wsgi protocols, wsgi servers etc, but later you understand that this was "the right thing". Same with Haskell, it does pay off a lot in future :)</p>
<div class="gmail_quote">15 квіт. 2015 19:27 "emacstheviking" <<a href="mailto:objitsu@gmail.com">objitsu@gmail.com</a>> пише:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I just love the way Haskell can blow something really simple into something truly mind blowingly obtuse looking at times!<div>It's no wonder Haskell won't be "mainstream" for a while yet, but that's fine, it means the rest of us can charge better rates for now.</div><div>:)<br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 15 April 2015 at 13:50, Kostiantyn Rybnikov <span dir="ltr"><<a href="mailto:k-bx@k-bx.com" target="_blank">k-bx@k-bx.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Adding to others,</p>
<p dir="ltr">For fmapping left value I suggest using fmapLeft from errors package, for fmapping both you can use</p>
<p dir="ltr">either (Left . replicate 3) (Right . replicate 3)</p>
<div class="gmail_quote">14 квіт. 2015 19:48 "Shishir Srivastava" <<a href="mailto:shishir.srivastava@gmail.com" target="_blank">shishir.srivastava@gmail.com</a>> пише:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div>Hi, </div><div><br></div><div>Can someone please explain the difference in outputs of the following two expressions - </div><div><br></div><div>--------------</div><div><br></div><div><div><font face="monospace, monospace">ghci> fmap (replicate 3) (Right "blah")  </font></div><div><font face="monospace, monospace">Right ["blah","blah","blah"]  </font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">ghci> fmap (replicate 3) (Left "foo")  </font></div><div><font face="monospace, monospace">Left "foo" </font></div></div><div><font face="monospace, monospace"><br></font></div><div>---------------</div><div><br></div><div>Why does 'Right' return a list of Strings whereas 'Left' returns just a String.</div><div><br></div><div>Thanks,</div><div><div><div dir="ltr"><font color="#0b5394"><font style="background-color:rgb(255,255,255)"><font size="2" face="georgia, serif">Shishir </font></font></font><br></div></div></div>
</div>
<br></div></div><span>_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org" target="_blank">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></span></blockquote></div>
<br>_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org" target="_blank">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>
<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>