caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Spiros Eliopoulos <seliopou@gmail.com>
To: rixed@happyleptic.org
Cc: Philippe Veber <philippe.veber@gmail.com>,
	caml users <caml-list@inria.fr>
Subject: Re: [Caml-list] js_of_ocaml and <svg>
Date: Sat, 2 Jan 2016 15:56:49 -0500	[thread overview]
Message-ID: <CAEkQQg+L61xGc0D-6-ZswiZWgj59e+mcZq1JSXBckNqAO9Zz2A@mail.gmail.com> (raw)
In-Reply-To: <CAEkQQgLxA=HjmhJqvtj2LQg0=G+vQeDUuq5R1e+egOe4k29mSg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 656 bytes --]

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 <seliopou@gmail.com>
wrote:

> Inserting a cast solves the type error:
>
> $ echo > toto.ml <<EOF
> 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
>

[-- Attachment #2: Type: text/html, Size: 1478 bytes --]

  reply	other threads:[~2016-01-02 20:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-02 17:43 rixed
2016-01-02 18:07 ` Philippe Veber
2016-01-02 20:42   ` rixed
2016-01-02 20:53     ` Spiros Eliopoulos
2016-01-02 20:56       ` Spiros Eliopoulos [this message]
2016-01-02 21:18     ` Drup
2016-01-02 21:30     ` Philippe Veber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAEkQQg+L61xGc0D-6-ZswiZWgj59e+mcZq1JSXBckNqAO9Zz2A@mail.gmail.com \
    --to=seliopou@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=philippe.veber@gmail.com \
    --cc=rixed@happyleptic.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).