Skip to content

Commit 5a4d0a5

Browse files
authored
Merge pull request #8 from xapi-project/ppx-ely
Merge pp-ely into master for moving to OCaml 4.02.3 and PPX
2 parents 06b9fa1 + 609773f commit 5a4d0a5

File tree

8 files changed

+3977
-3388
lines changed

8 files changed

+3977
-3388
lines changed

_oasis

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Plugins: DevFiles (0.3), META (0.3)
1111
Library "xapi-backtrace"
1212
Path: lib
1313
Modules: Backtrace
14-
BuildDepends: threads, sexplib, sexplib.syntax, rpclib, rpclib.syntax
14+
BuildDepends: threads, sexplib, ppx_sexp_conv, rpclib, rpclib.json, ppx_deriving_rpc
1515

1616
Document backtrace
1717
Type: ocamlbuild (0.4)

_tags

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# OASIS_START
2-
# DO NOT EDIT (digest: f9eb71a5c12c76bebad5dfc57456d180)
2+
# DO NOT EDIT (digest: a59c8ddb1cfe724d9a82aeebe131891d)
33
# Ignore VCS directories, you can use the same kind of rule outside
44
# OASIS_START/STOP if you want to exclude directories that contains
55
# useless stuff for the build process
@@ -16,9 +16,10 @@ true: annot, bin_annot
1616
"_darcs": not_hygienic
1717
# Library xapi-backtrace
1818
"lib/xapi-backtrace.cmxs": use_xapi-backtrace
19+
<lib/*.ml{,i,y}>: pkg_ppx_deriving_rpc
20+
<lib/*.ml{,i,y}>: pkg_ppx_sexp_conv
1921
<lib/*.ml{,i,y}>: pkg_rpclib
20-
<lib/*.ml{,i,y}>: pkg_rpclib.syntax
22+
<lib/*.ml{,i,y}>: pkg_rpclib.json
2123
<lib/*.ml{,i,y}>: pkg_sexplib
22-
<lib/*.ml{,i,y}>: pkg_sexplib.syntax
2324
<lib/*.ml{,i,y}>: pkg_threads
2425
# OASIS_STOP

lib/META

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# OASIS_START
2-
# DO NOT EDIT (digest: e0e2adcd87cbfc650e00fb9595e79124)
2+
# DO NOT EDIT (digest: 490bf2d2804a63bdd597621c29a85b5b)
33
version = "0.3"
44
description = "Helper functions for processing backtraces"
5-
requires = "threads sexplib sexplib.syntax rpclib rpclib.syntax"
5+
requires =
6+
"threads sexplib ppx_sexp_conv rpclib rpclib.json ppx_deriving_rpc"
67
archive(byte) = "xapi-backtrace.cma"
78
archive(byte, plugin) = "xapi-backtrace.cma"
89
archive(native) = "xapi-backtrace.cmxa"

lib/backtrace.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ type frame = {
3636
process: string;
3737
filename: string;
3838
line: int;
39-
} with sexp
39+
} [@@deriving sexp]
4040

41-
type t = frame list with sexp
41+
type t = frame list [@@deriving sexp]
4242

4343
let empty = []
4444

@@ -216,7 +216,7 @@ module Interop = struct
216216
(* Python json.dumps and rpclib are not very friendly *)
217217
files: string list;
218218
lines: int list;
219-
} with rpc
219+
} [@@deriving rpc]
220220

221221
let of_json source_name txt =
222222
txt

lib/backtrace.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* GNU Lesser General Public License for more details.
1313
*)
1414

15-
type t with sexp
15+
type t [@@deriving sexp]
1616
(** A backtrace from a particular thread. *)
1717

1818
val empty: t

0 commit comments

Comments
 (0)