|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [MirageOS-devel] uri interface change for sexp serialisation
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...
regards,
Anil
_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/mirageos-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |