gildor478 on master
Update README.md (compare)
gildor478 on master
Improve documentation. (compare)
gildor478 on master
Update logo. (compare)
gildor478 on master
Integrate documentation from oa… (compare)
I was the first to compile the ml file
I ask for an environmental problem
the error massage is
Error: Unbound module Core
but I do not know how bound module core
the ml source is
open Core.Std
let rec read_and_accumulate accum =
let line = In_channel.input_line In_channel.stdin in
match line with
| None -> accum
| Some x -> read_and_accumulate (accum +. Float.of_string x)
let () =
printf "Total: %F\n" (read_and_accumulate 0.)
ppx src/snark_intf.pp.ml (exit 1)
(cd _build/default && ./.ppx/ppx_deriving.enum+ppx_jane+ppx_driver.runner/ppx.exe --dump-ast --cookie 'library-name="snarky"' -diff-cmd - -o src/snark_intf.pp.ml --impl src/snark_intf.ml)
File "src/snark_intf.ml", line 415, characters 42-46:
Error: ppx_type_conv: 'enum' is not a supported signature type type-conv generator
ppx src/enumerable.pp.ml (exit 1)
(cd _build/default && ./.ppx/ppx_deriving.enum+ppx_jane+ppx_driver.runner/ppx.exe --dump-ast --cookie 'library-name="snarky"' -diff-cmd - -o src/enumerable.pp.ml --impl src/enumerable.ml)
File "src/enumerable.ml", line 12, characters 66-70:
Error: ppx_type_conv: 'enum' is not a supported signature type type-conv generator
ppx src/enumerable.pp.mli (exit 1)
(cd _build/default && ./.ppx/ppx_deriving.enum+ppx_jane+ppx_driver.runner/ppx.exe --dump-ast --cookie 'library-name="snarky"' -diff-cmd - -o src/enumerable.pp.mli --intf src/enumerable.mli)
File "src/enumerable.mli", line 2, characters 66-70:
Error: ppx_type_conv: 'enum' is not a supported signature type type-conv generator
jbuilder build
: functor (M : sig type t [@@deriving enum] end) ->
module Make (Impl : Snark_intf.Basic) (M : sig type t [@@deriving enum] end) = struct
ivg@pippin:~/artifacts/protobuf_example$ cat _oasis
OASISFormat: 0.4
Name: protobuf_example
Version: 0.1
Synopsis: Example
Authors: Me
License: MIT
Plugins: META (0.4), StdFiles (0.4), DevFiles (0.4)
Executable example
Path: .
BuildTools: ocamlbuild
MainIs: example.ml
BuildDepends: ppx_deriving_protobuf
$ cat example.ml
type t = string [@@deriving protobuf]
let () = print_endline "hello, world"
$ oasis setup
$ ./configure
<snip>
$ make
ocaml setup.ml -build
Finished, 0 targets (0 cached) in 00:00:00.
Finished, 3 targets (3 cached) in 00:00:00.
$ ./example.byte
hello, world
In other words, it works for me out of the box
+ /home/ivg/.opam/4.09.0/bin/ocamlfind ocamldep -package ppx_deriving_protobuf -package ppx_jane -modules example.ml > example.ml.depends
File "example.ml", line 1, characters 28-36:
1 | type t = string [@@deriving protobuf]
^^^^^^^^
Error: Ppxlib.Deriving: 'protobuf' is not a supported type deriving generator