Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress warning 32 for show #179

Merged
merged 1 commit into from
Mar 11, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src_plugins/ppx_deriving_show.cppo.ml
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,10 @@ let str_of_type ~options ~path ({ ptype_loc = loc } as type_decl) =
pvar (Ppx_deriving.mangle_type_decl (`Prefix "pp") type_decl) in
let show_var =
pvar (Ppx_deriving.mangle_type_decl (`Prefix "show") type_decl) in
let no_warn_32 = Ppx_deriving.attr_warning [%expr "-32"] in
[Vb.mk (Pat.constraint_ pp_var pp_type)
(Ppx_deriving.sanitize ~quoter (polymorphize prettyprinter));
Vb.mk (Pat.constraint_ show_var show_type) (polymorphize stringprinter);]
Vb.mk ~attrs:[no_warn_32] (Pat.constraint_ show_var show_type) (polymorphize stringprinter);]

let () =
Ppx_deriving.(register (create deriver
Expand Down