推導數據類型的to_string方法如何使用ppx和jbuilder推導to_string數據類型的方法? 例如,我試圖用@@deriving show推導出一個數據類型的show_*方法。我有一個簡單main.ml文件看起來像這樣: open Core
type foo = Bar | Baz
[@@deriving show]
let() = printf "%s\n" (s
安裝npm和node,編譯OCaml的文件與js_of_ocaml了錯誤後,因此我做了opam switch reinstall system: :testweb $ opam switch reinstall system
Your system compiler has been changed. Do you want to upgrade your OPAM installation ?