-
It looks like toplevel_expect_test doesn't work with syntax extensions. In particular, this:
```
#verbose true
#require "core"
#require "ppx_jane"
open Core.Std;;
let x = [%sexp_of: int]
```
Fails …
-
Citing your blog post http://whitequark.org/blog/2014/04/16/a-guide-to-extension-points-in-ocaml/ it should be something like this:
```
$ ocamlfind ppx_tools/rewriter ./ppx_deriving_main.native test.…
-
Our `.itarget` file causes us to build the native reporter unconditionally. We may want to relax that in light of this thread https://sympa.inria.fr/sympa/arc/caml-list/2016-01/msg00038.html
-
It seems `rewriter` exits with status 0 and an empty output file even when the ppx command fails
```
$ ocamlfind ppx_tools/rewriter -ppx whatever -impl strange_input.ml -o strange_input.out.ml
File "…
-
In ppx_deriving 2.2., it was possible to apply @@deriving on a module that happens to have the same name as a standard library module, e.g.:
``` ocaml
module List = struct
type 'a t = [`Cons of '…
-
I tried to construct a minimal example:
Syntax file foo.ml:
```
open Camlp4.PreCast
open Syntax
open Ast
let () =
EXTEND Gram
str_item: [
["SUPER" ->
let ptype =
-
I wanted to play with this code a little bit but I have some troubles compiling it. Would you mind adding some instructions to the README?
-
Here below we see that the generated function `c_of_yojson` does not return `[ `Ok of c | `Error of string ]`:
``` ocaml
utop> type a = [ `B of string ]
[@@deriving of_yojson];;
t…
-
When you try to derive for a type like:
```
type foo = F of int | B of int bar | C of float bar
type 'a bar = { x : 'a ; r : Foo }
```
You will end up with recursive functions:
```
let rec pp_foo …
-
```
findlib: [WARNING] Interface topdirs.cmi occurs in several directories: /Users/avsm/.opam/4.02.1/lib/ocaml, /Users/avsm/.opam/4.02.1/lib/ocaml/compiler-libs
/Users/avsm/.opam/4.02.1/bin/ocamlfind …