<div dir="ltr">Before cons'ing the result of init', you should check whether it's Just or Nothing. What you're doing now is something along the line with 5 : Just 3 -- this won't typecheck.<br></div><br><div class="gmail_quote">On Tue, May 12, 2015 at 5:22 PM Roelof Wobben <<a href="mailto:r.wobben@home.nl">r.wobben@home.nl</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>Brandon Allbery schreef op 12-5-2015 om
      16:16:<br>
    </div></div><div bgcolor="#FFFFFF" text="#000000">
    <blockquote type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">On Tue, May 12, 2015 at 10:11 AM,
            Roelof Wobben <span dir="ltr"><<a href="mailto:r.wobben@home.nl" target="_blank">r.wobben@home.nl</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000">
                <div>I do not understand what you are saying to me.<br>
                  <br>
                  I know that init produces a Maybe [a] . That is why I
                  did put a Just before it.<br>
                </div>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div>You are invoking it again though, and using its result
              as if it produces [a] instead of Maybe [a].</div>
          </div>
          <div><br>
          </div>
          -- <br>
          <div>
            <div dir="ltr">
              <div>brandon s allbery kf8nh                              
                sine nomine associates</div>
              <div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>
                                                 <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div>
              <div>unix, openafs, kerberos, infrastructure, xmonad      
                 <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
Beginners mailing list
<a href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a>
</pre>
    </blockquote>
    <br></div><div bgcolor="#FFFFFF" text="#000000">
    What is then the right way to do. I still do not understand what you
    are trying to make clear to me.</div><div bgcolor="#FFFFFF" text="#000000"><br>
    <br>
    Roelof</div><div bgcolor="#FFFFFF" text="#000000"><br>
    <br>
  
<br><br>
<hr style="border:none;color:#909090;background-color:#b0b0b0;min-height:1px;width:99%">
<table style="border-collapse:collapse;border:none">
        <tr>
                <td style="border:none;padding:0px 15px 0px 8px">
                        <a href="http://www.avast.com/" target="_blank">
                                <img border="0" src="http://static.avast.com/emails/avast-mail-stamp.png" alt="Avast logo">
                        </a>
                </td>
                <td>
                        <p style="color:#3d4d5a;font-family:"Calibri","Verdana","Arial","Helvetica";font-size:12pt">
                                Dit e-mailbericht is gecontroleerd op virussen met Avast antivirussoftware.
                                <br><a href="http://www.avast.com/" target="_blank">www.avast.com</a>
                        </p>
                </td>
        </tr>
</table>
<br>
</div>

_______________________________________________<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>
</blockquote></div>