<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<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;
        color:black;
        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;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.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]-->
</head>
<body bgcolor="white" lang="SV" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">My bad, sorry. It took me a short while to see the misspelling. Got it working. I will be more careful about that in the future.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">I move on to trying multiple objects and then adding “foreignObject” tag:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">val foreignObject : svgTag([X = string, Y = string, Width = string, Height = string] ++ typicalAttrs)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">an addition to the SVG.urs (cf. original at
<a href="https://github.com/karsar/urweb-examples/blob/master/SVGTest/SVG.urs">https://github.com/karsar/urweb-examples/blob/master/SVGTest/SVG.urs</a>) , this require somehow to mix xsvg with xbody. Anything in particular that has to be taken into account
 when mixing this?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">/Jonas Mellin<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:65.2pt"><b><span lang="EN-US" style="color:windowtext;mso-fareast-language:SV">From:</span></b><span lang="EN-US" style="color:windowtext;mso-fareast-language:SV"> Ur [mailto:ur-bounces@impredicative.com]
<b>On Behalf Of </b>Adam Chlipala<br>
<b>Sent:</b> den 17 april 2018 13:20<br>
<b>To:</b> ur@impredicative.com<br>
<b>Subject:</b> Re: [Ur] UR/Web SVG (ffi) question<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:65.2pt"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="margin-left:65.2pt">For future questions, I think it would be good for you to explain what you understand from error messages, highlighting what additional understanding you need to diagnose the error.  Here again the problem is
 a simple one that would be recognized as a bug in any programming language.<br>
<br>
Notice the difference in spellings of field names, between the "Have" and "Need" parts of the error message.<br>
<br>
On 04/17/2018 05:53 AM, Jonas Mellin wrote:<span style="font-size:12.0pt;mso-fareast-language:SV"><o:p></o:p></span></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal" style="margin-left:65.2pt"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:SV">...
<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:65.2pt"><span lang="EN-US" style="color:#1F497D">                               <body onmousemove={fn ev => set x (ev.ScreenX,ev.SceenY)}></span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:65.2pt"><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#1F497D;mso-fareast-language:SV">...</span><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:SV">
</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:SV"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:65.2pt"><span lang="EN-US" style="color:#1F497D">   
</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:65.2pt"><span lang="EN-US" style="color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:65.2pt"><b><span lang="EN-US" style="color:#1F497D;background:yellow;mso-highlight:yellow">But I get:</span></b><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:65.2pt"><span lang="EN-US" style="color:#1F497D">Can't unify record constructors</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:65.2pt"><span lang="EN-US" style="color:#1F497D">Have:
</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:65.2pt"><span lang="EN-US" style="color:#1F497D">[ScreenX = int, ScreenY = int, ClientX = int, ClientY = int,
</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:65.2pt"><span lang="EN-US" style="color:#1F497D">  CtrlKey = bool, ShiftKey = bool, AltKey = bool, MetaKey = bool,
</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:65.2pt"><span lang="EN-US" style="color:#1F497D">  Button = mouseButton]</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:65.2pt"><span lang="EN-US" style="color:#1F497D">Need:  <UNIF:U140::{Type}> ++ [ScreenX = int, SceenY = int]</span><o:p></o:p></p>
</blockquote>
<p class="MsoNormal" style="margin-left:65.2pt"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:SV"><o:p> </o:p></span></p>
</div>
</body>
</html>