<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=windows-1252">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello, <br>
    <br>
    I try to re implement ++ <br>
    <br>
    So far I have this ; <br>
    <br>
    plusplus' :: [a] -> [a] -> [a]<br>
    plusplus' [] (xs) = xs <br>
    plusplus' [] [] = [] <br>
    plusplus' (xs) [] =  xs<br>
    plusplus' (x:xs) yx = plusplus' xs x:yx<br>
    <br>
    main = print . plusplus' $ [1,2] [3,4]<br>
    <br>
    <br>
    But I still get this error message : <br>
    <br>
    <div class="ide-error-span">src/Main.hs@5:23-5:37 </div>
    <div class="ide-error-msg"><span>Couldn't match expected type </span>
      <div class="CodeMirror cm-s-default" style="font-size: 14px;"><span
          class="cm-variable">a</span></div>
      <span> with actual type </span>
      <div class="CodeMirror cm-s-default" style="font-size: 14px;">[<span
          class="cm-variable">a</span>]</div>
      <span> </span>
      <div class="CodeMirror cm-s-default" style="font-size: 14px;"><span
          class="cm-variable">a</span></div>
      <span> is a rigid type variable bound by the type signature for
        plusplus' :: [a] -> [a] -> [a] at
        /home/app/isolation-runner-work/projects/112825/session.207/src/src/Main.hs:1:14
Relevant
        bindings include yx :: [a] (bound at
        /home/app/isolation-runner-work/projects/112825/session.207/src/src/Main.hs:5:18)

        xs :: [a] (bound at
        /home/app/isolation-runner-work/projects/112825/session.207/src/src/Main.hs:5:14)

        x :: a (bound at
        /home/app/isolation-runner-work/projects/112825/session.207/src/src/Main.hs:5:12)

        plusplus' :: [a] -> [a] -> [a] (bound at
/home/app/isolation-runner-work/projects/112825/session.207/src/src/Main.hs:2:1)</span><span
        title="Click to show/hide extra information"
        class="ide-error-collapse-btn"> …<br>
        <br>
        <br>
      </span></div>
    <br>
  
<br /><br />
<hr style='border:none; color:#909090; background-color:#B0B0B0; 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/">
                                <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/">www.avast.com</a>
                        </p>
                </td>
        </tr>
</table>
<br />
</body>
</html>