From: Anton Bachin <antonbachin@yahoo.com>
To: "François Bobot" <francois.bobot@cea.fr>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] [ANN] Lambda Soup - HTML scraping and rewriting with CSS selectors
Date: Mon, 23 Nov 2015 10:26:48 -0600 [thread overview]
Message-ID: <98E819C0-76A2-4038-A5E6-DFBDC08DF7FA@yahoo.com> (raw)
In-Reply-To: <5652EDFC.5070105@cea.fr>
> It is just for not creating another xml type and simpler composition of ocaml libraries.
That’s a worthwhile goal. I certainly intend to look into it. I want
there to be some “canonical” set of libraries that work together nicely.
> The functor solution used by cohttp (for allowing lwt or async) for example is a nice one, and flambda should eliminate most of the cost of it (on a side note, does @inline work for functor application?)
Since you just made me aware of the existence of @inline (thank you),
I’m going to have to hope someone else answers the side note
question :) I would have to gain some experience with it first in
normal usage.
> However in this case since the differences is about typing and not just the implementation, I'm not sure you can define a generic functor that could be applied with instance (NetHttp, tyxml, yours) that restricts differently the function applications.
Let me make sure we are focusing on the same issue. I am supposing that
you would like to construct a tree using tyxml’s “richly-typed”
functions, then be able to walk around it using Lambda Soup, and make
edits in the tree using the mutation interface (or some improved
variant of it) or tyxml. However, when making the edits, you would want
the “rich” tyxml types preserved, to benefit from the static constraints
they impose on your code. Is this right?
I think that is the only trouble. Lamdba Soup doesn’t actually expose
any XML type, and I think it can ported or functorized to work with just
about any low-level XML representation.
Regards,
Anton
next prev parent reply other threads:[~2015-11-23 16:26 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-16 21:01 Anton Bachin
2015-11-17 9:31 ` François Bobot
2015-11-22 7:58 ` Anton Bachin
2015-11-23 10:44 ` François Bobot
2015-11-23 16:26 ` Anton Bachin [this message]
2015-11-23 17:16 ` Drup
2015-11-23 17:35 ` Anton Bachin
2015-11-23 17:41 ` Anton Bachin
2015-11-23 18:20 ` Drup
2015-11-23 19:02 ` Anton Bachin
2015-11-24 8:35 ` François Bobot
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=98E819C0-76A2-4038-A5E6-DFBDC08DF7FA@yahoo.com \
--to=antonbachin@yahoo.com \
--cc=caml-list@inria.fr \
--cc=francois.bobot@cea.fr \
/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