<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Yup, that's the reply I had in mind when I read your first
      message!<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 09/28/2016 06:54 PM, Saulo Araujo
      wrote:<br>
    </div>
    <blockquote
cite="mid:CA+ckhoTz0EKa3qDQrOW+TsO5Ofo8ghGWPiENOASeWa3aNU6jgQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>Apparently, the way to go is to make the arguments
          explicit. Therefore, rather than writing:</div>
        <div><br>
        </div>
        <div>
          <div><span style="white-space:pre">Sql.easy_insertOrUpdate [[cellTableGroupForeignKeyColumnName = _,</span></div>
          <div><span class="gmail-Apple-tab-span" style="white-space:pre">                      </span>
             cellTableRowForeignKeyColumnName = _,</div>
          <div><span class="gmail-Apple-tab-span" style="white-space:pre">                      </span>
             cellTableDateColumnName = _]]</div>
          <div><span class="gmail-Apple-tab-span" style="white-space:pre">                      </span>cellTable</div>
          <div><span class="gmail-Apple-tab-span" style="white-space:pre">                      </span>({cellTableGroupForeignKeyColumnName
            = groupId,</div>
          <div><span class="gmail-Apple-tab-span" style="white-space:pre">                      </span>
             cellTableRowForeignKeyColumnName = rowId,</div>
          <div><span class="gmail-Apple-tab-span" style="white-space:pre">                      </span>
             cellTableDateColumnName = date} ++ contents)</div>
        </div>
        <div><br>
        </div>
        <div>one has to write:</div>
        <div><br>
        </div>
        <div>
          <div><span class="gmail-Apple-tab-span" style="white-space:pre">      </span>@Sql.easy_insertOrUpdate</div>
          <div><span class="gmail-Apple-tab-span" style="white-space:pre">      </span>
            [[cellTableGroupForeignKeyColumnName = _,
            cellTableRowForeignKeyColumnName = _,
            cellTableDateColumnName = _]]</div>
          <div><span class="gmail-Apple-tab-span" style="white-space:pre">      </span>
            !</div>
          <div><span class="gmail-Apple-tab-span" style="white-space:pre">      </span>
            _</div>
          <div><span class="gmail-Apple-tab-span" style="white-space:pre">      </span>
            cellTableOtherColumnsInjectable</div>
          <div><span class="gmail-Apple-tab-span" style="white-space:pre">      </span>
            _</div>
          <div><span class="gmail-Apple-tab-span" style="white-space:pre">      </span>
            cellTableOtherColumnsFolder</div>
          <div><span class="gmail-Apple-tab-span" style="white-space:pre">      </span>
            cellTable</div>
          <div><span class="gmail-Apple-tab-span" style="white-space:pre">      </span>
            ({cellTableGroupForeignKeyColumnName = groupId,
            cellTableRowForeignKeyColumnName = rowId,
            cellTableDateColumnName = date} ++ contents)</div>
        </div>
        <div><br>
        </div>
        <div>Sincerely,</div>
        <div>Saulo</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Wed, Sep 28, 2016 at 5:47 PM, Saulo
          Araujo <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:saulo2@gmail.com" target="_blank">saulo2@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 dir="ltr">
              <div>
                <div>Hi,<br>
                  <br>
                  I am trying to use the function
                  Sql.easy_insertOrUpdate in the code <a
                    moz-do-not-send="true"
                    href="https://github.com/saulo2/timesheet-upo/blob/master/timeSheet.ur"
                    target="_blank">https://github.com/saulo2/<wbr>timesheet-upo/blob/master/<wbr>timeSheet.ur</a>
                  but I am getting the following compiler errors:<br>
                  <br>
                  /home/saulo/Programming/<wbr>projects/timesheet-upo/<wbr>timeSheet.ur:103:1:
                  (to 105:35) Can't resolve type class instance<br>
                  Class constraint:  $(map sql_injectable
                  S.cellTableOtherColumns)<br>
                  /home/saulo/Programming/<wbr>projects/timesheet-upo/<wbr>timeSheet.ur:103:1:
                  (to 105:35) Can't resolve type class instance<br>
                  Class constraint:  Top.folder[[Type]]
                  S.cellTableOtherColumns<br>
                  <br>
                  I faced similar errors before, and I got rid of them
                  by declaring the type class instances in the SCHEMA
                  signature. However, doing the same did not work for <br>
                  <br>
                  $(map sql_injectable S.cellTableOtherColumns) <br>
                  <br>
                  and <br>
                  <br>
                  folder cellTableOtherColumns.<br>
                  <br>
                  Does anyone know why?<br>
                  <br>
                </div>
                Sincerely,<br>
              </div>
              Saulo<br>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Ur mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Ur@impredicative.com">Ur@impredicative.com</a>
<a class="moz-txt-link-freetext" href="http://www.impredicative.com/cgi-bin/mailman/listinfo/ur">http://www.impredicative.com/cgi-bin/mailman/listinfo/ur</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>