caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "François Bobot" <francois.bobot@cea.fr>
To: Anton Bachin <antonbachin@yahoo.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] [ANN] Lambda Soup - HTML scraping and rewriting with CSS selectors
Date: Tue, 24 Nov 2015 09:35:42 +0100	[thread overview]
Message-ID: <5654215E.5000203@cea.fr> (raw)
In-Reply-To: <98E819C0-76A2-4038-A5E6-DFBDC08DF7FA@yahoo.com>

On 23/11/2015 17:26, Anton Bachin wrote:
>> 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?

Yes, I forgot that you don't modify the tree. However even just for walking, you need to be able to 
return an element of the right type. But it is, indeed, easier without modification.

>
> 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.

It would be interesting to know how that work out.


Best,

-- 
François



      parent reply	other threads:[~2015-11-24  8:35 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
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 [this message]

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=5654215E.5000203@cea.fr \
    --to=francois.bobot@cea.fr \
    --cc=antonbachin@yahoo.com \
    --cc=caml-list@inria.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;
as well as URLs for NNTP newsgroup(s).