<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><br></div><div><br>On 09 Jan 2014, at 20:52, Vlatko Basic <<a href="mailto:vlatko.basic@gmail.com">vlatko.basic@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div>
  
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
    <style id="EHTipGlobalStyle">.EHTipToolTip * {background: inherit;font-family: inherit;font-size: inherit;font-size-adjust: none;font-stretch: normal;line-height: inherit;font-variant: normal;border: 0px;text-transform: inherit;color: inherit;font-style: inherit;text-decoration: inherit;margin: 0px 0px 0px 0px;padding: 0px 0px 0px 0px;float: none;display: inline;cursor: default;}
.EHTipReplacer, .EHTipKey, .EHTipAudio {cursor: pointer;}
.EHTipToolTip hr {margin: 0.4em 0;display: block;border: 1px inset;}
.EHTipTranslation {font-style: normal;}
.EHTipTranslation a {color: #000099;font-style: normal;text-decoration: none;}
.EHTipTranslation a:hover {background: inherit;color: #000000;text-decoration: underline;}
</style>
  
  
    Hi Brandon,<br>
    <br>
    > ... you did not think out your program sufficiently beforehand
    ...<br>
    Yes, that is quite possible. I consider myself an FP beginner still.<br>
    I encountered that mixing Maybe and Either problem few months ago
    and I think it was about using parseUri and simpleHTTP and I had to
    `case` them separately to provide a meaningful error message.
    Haven't been able to simply chain them. In other words, it was not a
    nice looking function. <br>
    Maybe today I'd write it differently.<br></div></blockquote><div><br></div><div>I suggest taking a loon at the 'errors' package mentioned earlier in this thread, it somewhat simplified my issues with unifying Maybe/Either/EitherT</div><br><blockquote type="cite"><div>
    <br>
    > ... what exactly is the problem with using appropriate data
    types in appropriate places ...<br>
    It is a good thing. Very good. But I do not think all library
    writers are using it in correct places. But that's another problem.<br>
    <br>
    <br>
    vlatko<br>
    <br>
    <blockquote style="border-left: 2px solid #330033 !important;
      border-right: 2px solid #330033 !important; padding: 0px 15px 0px
      15px; margin: 8px 2px;" cite="mid:CAKFCL4XhATDcSRWPo+F=5n=4QF5R4dgL3E-rAYQoGwZP3V=6cw@mail.gmail.com" type="cite"><!--[if !IE]><DIV style="border-left: 2px solid #330033; border-right: 2px solid #330033;  padding: 0px 15px; margin: 2px 0px;"><![endif]--><span style="color:#000000;" class="headerSpan">
        <div class="moz-cite-prefix">-------- Original Message --------<br>
          Subject: Re: [Haskell-cafe] Why Maybe exists if there is
          Either?<br>
          From: Brandon Allbery <a class="moz-txt-link-rfc2396E" href="mailto:allbery.b@gmail.com"><allbery.b@gmail.com></a><br>
          To: Vlatko Bašić <a class="moz-txt-link-rfc2396E" href="mailto:vlatko.basic@gmail.com"><vlatko.basic@gmail.com></a><br>
          Cc: Johannes Erber <a class="moz-txt-link-rfc2396E" href="mailto:Hannes_E@gmx.de"><Hannes_E@gmx.de></a>,
          <a class="moz-txt-link-rfc2396E" href="mailto:haskell-cafe@haskell.org">"haskell-cafe@haskell.org"</a> <a class="moz-txt-link-rfc2396E" href="mailto:haskell-cafe@haskell.org"><haskell-cafe@haskell.org></a><br>
          Date: 09.01.2014 17:32<br>
        </div>
        <br>
        <br>
      </span>
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">On Thu, Jan 9, 2014 at 11:25 AM,
            Vlatko Basic <span dir="ltr"><<a moz-do-not-send="true" href="mailto:vlatko.basic@gmail.com" target="_blank">vlatko.basic@gmail.com</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div style="" bgcolor="#FFFFFF" text="#000000">> ... is
                letting the programmer do what they need to do with a
                minimum of fuss or extra work ...<br>
                But doesn't the need of mixing Maybe and Either cause
                more work for the programmer? Programmer of library, or
                programmer using the library?<br>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div>Arguably if you need to switch from Maybe to Either
              then you did not think out your program sufficiently
              beforehand. And if you did think it out, what exactly is
              the problem with using appropriate data types in
              appropriate places?</div>
            <div><br>
            </div>
          </div>
          -- <br>
          <div dir="ltr">
            <div>brandon s allbery kf8nh                              
              sine nomine associates</div>
            <div><a moz-do-not-send="true" href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>
                                               <a moz-do-not-send="true" href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div>
            <div>unix, openafs, kerberos, infrastructure, xmonad        <a moz-do-not-send="true" href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div>
          </div>
        </div>
      </div>
      <!--[if !IE]></DIV><![endif]--></blockquote>
    <br>
  

</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Haskell-Cafe mailing list</span><br><span><a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a></span><br><span><a href="http://www.haskell.org/mailman/listinfo/haskell-cafe">http://www.haskell.org/mailman/listinfo/haskell-cafe</a></span><br></div></blockquote></body></html>