From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 9C75E7F058 for ; Sat, 2 Jan 2016 21:57:10 +0100 (CET) IronPort-PHdr: 9a23:1OhCihz0O/qHpCrXCy+O+j09IxM/srCxBDY+r6Qd0e8fIJqq85mqBkHD//Il1AaPBtWFraocw8Pt8IneGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2WVTerzWI4CIIHV2nbEwudrqzQtaapv/0/t7x0qWbWx9Piju5bOE6BzSNhiKViPMrh5B/IL060BrDrygAUe1XwWR1OQDbxE6ktY+YtaRu+CVIuv8n69UIEeCjJ/x5HvRkC2E8MnA46OXrvAHbXA+C/mcdWSMRiBUbLRLC6UTBRpbrtTCym+583zGdIMnxVvhgQjmm7qBzTwLAhyIONjp/+2bS3J8jxJlHqQ6s8kQsi7XfZ5uYYb8nJvvQ Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=seliopou@gmail.com; spf=Pass smtp.mailfrom=seliopou@gmail.com; spf=None smtp.helo=postmaster@mail-lb0-f175.google.com Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of seliopou@gmail.com) identity=pra; client-ip=209.85.217.175; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="seliopou@gmail.com"; x-sender="seliopou@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of seliopou@gmail.com designates 209.85.217.175 as permitted sender) identity=mailfrom; client-ip=209.85.217.175; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="seliopou@gmail.com"; x-sender="seliopou@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-lb0-f175.google.com) identity=helo; client-ip=209.85.217.175; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="seliopou@gmail.com"; x-sender="postmaster@mail-lb0-f175.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0CDAQB4OIhWm6/ZVdFeg1g0bQaIU7N+gWQehXECgQoHORMBAQEBAQEBARABAQEBAQYLCwkhLoItgggBAQMBEhEdARsdAQMBCwYFBAEGNwICIQEBEQEFARwZIod3AQMKCA6hGIExPjGLSIFqgnmIEgoZJw1WgkgBAQEBAQUBAQEBAQEBAQEUAQUOhkiEf4JPgjUfglCBSQWOMIhWhUCGGYF4giaMVUSGHYYNESSBFxESAYJEIoICIDSFEAEBAQ X-IPAS-Result: A0CDAQB4OIhWm6/ZVdFeg1g0bQaIU7N+gWQehXECgQoHORMBAQEBAQEBARABAQEBAQYLCwkhLoItgggBAQMBEhEdARsdAQMBCwYFBAEGNwICIQEBEQEFARwZIod3AQMKCA6hGIExPjGLSIFqgnmIEgoZJw1WgkgBAQEBAQUBAQEBAQEBAQEUAQUOhkiEf4JPgjUfglCBSQWOMIhWhUCGGYF4giaMVUSGHYYNESSBFxESAYJEIoICIDSFEAEBAQ X-IronPort-AV: E=Sophos;i="5.20,513,1444687200"; d="scan'208";a="195296594" Received: from mail-lb0-f175.google.com ([209.85.217.175]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/AES128-GCM-SHA256; 02 Jan 2016 21:57:09 +0100 Received: by mail-lb0-f175.google.com with SMTP id bc4so143647508lbc.2 for ; Sat, 02 Jan 2016 12:57:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=dNyy5DCJpQF7Yzm7kBB5hVDUQl6O6zffMQKKhN+uRB8=; b=WOERMkDveEFvQQgkyTuTI0WT9D8Ij1LG6LVniLS+BqMxD20vNUUkd1nqs5IDuJZ77b jUqQP0hMsl3DevVZYhJ+NfdPzdx48dgdCyrPe7SMBzFi8JuGh0FfNm63vjKHZuig6Za7 WMkXbZ9C6fGTo63EiRC0kQ6oy/M9AnCq0j8ASe5ITPMslWy9d8e3NDzGvgaCuR82AJRS 1easbRDb5czierL/lulUsXQWkMIVu04bdU0B9saYZNLK1BPa9GVtrcUDoGpjeriVwUzO 9YJfDauYx+gYkW4tAOux21EI7BmISkbuJng1raQviAWTVp6bZ8arjNFjW3c7Hi9oCIky 5pqA== X-Received: by 10.112.160.202 with SMTP id xm10mr23658521lbb.22.1451768228865; Sat, 02 Jan 2016 12:57:08 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.198.2 with HTTP; Sat, 2 Jan 2016 12:56:49 -0800 (PST) In-Reply-To: References: <20160102174325.GA22783@pim.happyleptic.org> <20160102204246.GA23759@pim.happyleptic.org> From: Spiros Eliopoulos Date: Sat, 2 Jan 2016 15:56:49 -0500 Message-ID: To: rixed@happyleptic.org Cc: Philippe Veber , caml users Content-Type: multipart/alternative; boundary=001a11c261ac93ecc30528602123 Subject: Re: [Caml-list] js_of_ocaml and --001a11c261ac93ecc30528602123 Content-Type: text/plain; charset=UTF-8 Scratch that, had the wrong code in the file. Another way to get around all this is to use ocaml-d3: https://github.com/seliopou/ocaml-d3 This will give you a nice (and type-safe) API to make data-driven interfaces, D3.s setups up all the basic xml namespaces for you so you don't have to fight with that. On Sat, Jan 2, 2016 at 3:53 PM, Spiros Eliopoulos wrote: > Inserting a cast solves the type error: > > $ echo > toto.ml < let svg = Dom_svg.createSvg (Dom_html.window##document :> Dom_svg.document) > > EOF > $ ocamlfind ocamlc -syntax camlp4o -package "js_of_ocaml > js_of_ocaml.syntax" -c toto.ml > $ echo $? > 0 > --001a11c261ac93ecc30528602123 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Scratch that, had the wrong code in the file.

Another way to get around all this is to use ocaml-d3:

This will g= ive you a nice (and type-safe) API to make data-driven interfaces, D3.s set= ups up all the basic xml namespaces for you so you don't have to fight = with that.

On Sat, Jan 2, 2016 at 3:53 PM, Spiros Eliopoulos &l= t;seliopou@gmail.co= m> wrote:
=
Inserting a cast solv= es the type error:

$ echo > toto.= ml <<EOF
let svg =3D Dom_svg.crea= teSvg (Dom_html.window##document :> Dom_svg.document)
> EOF=C2=A0
$ ocamlfind oc= amlc -syntax camlp4o -package "js_of_ocaml js_of_ocaml.syntax" -c= toto.ml
$ echo $?
0

--001a11c261ac93ecc30528602123--