Closed UnixJunkie closed 8 years ago
You can do this:
#require "core,ppx_jane";;
open Core.Std;;
type t = Int of int | Float of float [@@deriving sexp];;
Or
#require "ppx_sexp_conv"
if you want just the sexplib converter. And you can open Sexplib.Std instead of Core.Std for that case as well.
Thanks for the answers. I will try the minimalist way using (open Sexplib.std), and not pull the whole core just for that.
OK, it works in utop:
#require "ppx_sexp_conv";;
open Sexplib.Std
type t = {
i: int;
f: float
} [@@deriving sexp];;
Is it possible to compile such code with an ocamlbuild one-liner and no _tags and myocamlbuild.ml files ?
This should do: ocamlbuild -use-ocamlfind -pkg ppx_sexp_conv
Indeed, thanks!
This issue is resolved. It can be closed.
Thanks a lot !