如何在我的utop中使用ppx derive (https://github.com/ocaml-ppx/ppx_deriving)?
例如,我必须执行以下代码:
module A = struct
module T = struct
type t = int [@@deriving hash, sexp, compare]
end
include Core_kernel.Hashable.Make(T)
end;;发布于 2021-10-19 22:21:38
只需输入:
#require "ppx_jane";;在utop中将使这些宏工作
https://stackoverflow.com/questions/69638234
复制相似问题