Closed eriklovlie closed 3 years ago
$ opam show ppx_jane
package: ppx_jane
version: v0.11.0
repository: default
upstream-url: https://ocaml.janestreet.com/ocaml-core/v0.11/files/ppx_jane-v0.11.0.tar.gz
upstream-kind: http
upstream-checksum: 11da0871ae3841fb6710ec6471ce6b92
homepage: https://github.com/janestreet/ppx_jane
bug-reports: https://github.com/janestreet/ppx_jane/issues
dev-repo: git+https://github.com/janestreet/ppx_jane.git
author: Jane Street Group, LLC <opensource@janestreet.com>
license: Apache-2.0
depends: ppx_assert (>= v0.11 & < v0.12) & ppx_base (>= v0.11 & < v0.12) & ppx_bench (>= v0.11 & < v0.12) & ppx_bin_prot (>= v0.11 & < v0.12) & ppx_custom_printf (>= v0.11 & < v0.12) & ppx_expect (>= v0.11 & < v0.12) & ppx_fail (>= v0.11 & < v0.12) & ppx_fields_conv (>= v0.11 & < v0.12) & ppx_here (>= v0.11 & < v0.12) & ppx_inline_test (>= v0.11 & < v0.12) & ppx_let (>= v0.11 & < v0.12) & ppx_optcomp (>= v0.11 & < v0.12) & ppx_optional (>= v0.11 & < v0.12) & ppx_pipebang (>= v0.11 & < v0.12) & ppx_sexp_message (>= v0.11 & < v0.12) & ppx_sexp_value (>= v0.11 & < v0.12) & ppx_typerep_conv (>= v0.11 & < v0.12) & ppx_variants_conv (>= v0.11 & < v0.12) & jbuilder >= 1.0+beta18.1 & ocaml-migrate-parsetree >= 1.0 & ppxlib >= 0.1.0
installed-versions: v0.10.0 [4.05.0], v0.11.0 [4.06.1]
available-versions: 113.24.00, 113.24.01, 113.33.00, 113.33.03, v0.9.0, v0.10.0, v0.11.0
description: Standard Jane Street ppx rewriters
This package installs a ppx-jane executable, which is a ppx driver
including all standard Jane Street ppx rewriters.
It's indeed a documentation issue. We add a discussion about this when we added support for inline records and decided to avoid the extra parentheses.
Added some doc in 407ef6c.
This might be merely a documentation issue, however: the README states:
This doesn't seem to be the case for variant constructors with inline records:
The program is:
However, if I modify the string in
Sexp.of_string
to this it works:So it seems the fact that the record is "inline" is significant in the serialization form. Should there be a note in the documentation on this?