[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MirageOS-devel] uri interface change for sexp serialisation

  • To: mirageos-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Anil Madhavapeddy <anil@xxxxxxxxxx>
  • Date: Mon, 15 Oct 2018 15:36:54 +0100
  • Delivery-date: Mon, 15 Oct 2018 14:37:15 +0000
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=recoil.org; h=from :content-type:content-transfer-encoding:mime-version:subject :message-id:date:to; q=dns; s=selector1; b=GnKwe+Y9A9MQOvlfWcK0i jSrk6vfZNUKAYiV2zRKPJbLTNYhHVw+hnrt5SWblfS53nTLVqLzCth2ceKZ0JmFw 18lJ/S4VdCi4ie9orxLyP5/L8L0VM2Bru/PpVjFRPTU9Mc3MndCmD8IYQEVwFvqN QKFtym9hwPH3ysP1JhLIqA=
  • List-id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>

Dear all,

I wanted to make you aware of an upcoming change to how sexp serialisers are 
exposed in a forthcoming version of Uri.

Rather than having them as base dependencies, we now have `uri.sexp` library 
that exposes a Uri_sexp module in which those serialisers are kept.

In order to use it,  you simply:

#require "uri.sexp"

type foo = {
  uri: Uri_sexp.t;
} [@@deriving sexp]

Note the type alias to Uri_sexp.t instead of directly using Uri.t.

This makes life easier in the short term for our jsoo-using friends, where the 
sexp code isn't necessary.  If there are no objections to this basic approach, 
I plan to do the same thing for Ipaddr as well (and any of the base libraries 
we depend on in mirage-types).

In the longer-term, Jeremie Dimino has a plan to build a more composable 
ppx-based serialisation system that will avoid the combinatorial explosion of 
different serialisation formats, but this current solution seems like good 
packaging discipline anyway...

MirageOS-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.