<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">I have not read all of your code, but I
      did spot the problem behind the first compiler error message,
      which I think all web developers would agree is problematic. 
      (I.e., it isn't just a question of a fussy Ur/Web type system.)<br>
      <br>
      On 04/16/2018 04:58 AM, Jonas Mellin wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:67EBC36FAF00564EAAE9C7FD4E3CE3B0010D5A5486@HSMSMBX1.hs.local">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1"><span style="color:#222222" lang="EN-US"><o:p></o:p></span>
        <p class="MsoNormal" style="background:white"><span
            style="color:#222222" lang="EN-US">fun proc (x: intPair) =<o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
            style="color:#222222" lang="EN-US">    x <- source x;<o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
            style="color:#222222" lang="EN-US">    return<o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
            style="color:#222222" lang="EN-US">                             <xml><o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
            style="color:#222222" lang="EN-US">                               <body
            onmousemove={fn ev => set x (ev.ScreenX,ev.SceenY)}><o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
            style="color:#222222" lang="EN-US">                                
            <!-- ... --><o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
            style="color:#222222" lang="EN-US">                               </xml><o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
            style="color:#222222" lang="EN-US"> <o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
            style="color:#222222" lang="EN-US">fun main(): transaction
            page =<o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
            style="color:#222222" lang="EN-US">    xml <- proc (0,0);<o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
            style="color:#222222" lang="EN-US">    return<o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
            style="color:#222222" lang="EN-US">                             <xml><o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
            style="color:#222222" lang="EN-US">                               <head><o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
            style="color:#222222" lang="EN-US">                                 Banzai<o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
            style="color:#222222" lang="EN-US">                               </head><o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
            style="color:#222222" lang="EN-US">                               <body><o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
            style="color:#222222" lang="EN-US">                                 {xml}<o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
            style="color:#222222" lang="EN-US">                               </body><o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
            style="color:#222222" lang="EN-US">                             </xml><o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
            style="color:#222222" lang="EN-US"> <o:p></o:p></span></p>
        [...]<span style="color:#222222" lang="EN-US"><o:p></o:p></span>
        <p class="MsoNormal"
          style="background:white;font-variant-ligatures:
          normal;font-variant-caps: normal;orphans:
          2;text-align:start;widows: 2;-webkit-text-stroke-width:
          0px;text-decoration-style: initial;text-decoration-color:
          initial;word-spacing:0px">
          <span style="color:#222222" lang="EN-US"><br>
            <o:p></o:p></span></p>
        <p class="MsoNormal"
          style="background:white;font-variant-ligatures:
          normal;font-variant-caps: normal;orphans:
          2;text-align:start;widows: 2;-webkit-text-stroke-width:
          0px;text-decoration-style: initial;text-decoration-color:
          initial;word-spacing:0px">
          <span style="color:#222222" lang="EN-US">/home/a/SVGTest2/SVGTest.ur:33:4:
            (to 44:2) Error in final record unification<o:p></o:p></span></p>
        <p class="MsoNormal"
          style="background:white;font-variant-ligatures:
          normal;font-variant-caps: normal;orphans:
          2;text-align:start;widows: 2;-webkit-text-stroke-width:
          0px;text-decoration-style: initial;text-decoration-color:
          initial;word-spacing:0px">
          <span style="color:#222222" lang="EN-US">Can't unify record
            constructors<o:p></o:p></span></p>
        <p class="MsoNormal"
          style="background:white;font-variant-ligatures:
          normal;font-variant-caps: normal;orphans:
          2;text-align:start;widows: 2;-webkit-text-stroke-width:
          0px;text-decoration-style: initial;text-decoration-color:
          initial;word-spacing:0px">
          <span style="color:#222222" lang="EN-US">Have:  [Dyn = (),
            MakeForm = (), Body = ()]<o:p></o:p></span></p>
        <p class="MsoNormal"
          style="background:white;font-variant-ligatures:
          normal;font-variant-caps: normal;orphans:
          2;text-align:start;widows: 2;-webkit-text-stroke-width:
          0px;text-decoration-style: initial;text-decoration-color:
          initial;word-spacing:0px">
          <span style="color:#222222" lang="EN-US">Need:  [Html = ()]<o:p></o:p></span></p>
      </div>
    </blockquote>
    <br>
    Notice that your [proc] code includes a <body> tag, but then
    you nest it within another <body> tag!<br>
  </body>
</html>