Skip to content

Commit

Permalink
Install top-level printers with attribute
Browse files Browse the repository at this point in the history
As of ocaml-community/utop#269 utop automatically installs printers
marked with the `[@@ocaml.toplevel_printer]` attribute.
  • Loading branch information
brendanzab committed Nov 11, 2024
1 parent 6aaa3e3 commit 613de42
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 93 deletions.
2 changes: 1 addition & 1 deletion src/unsigned.mli
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ module type S = sig
(** Convert the given string to an unsigned integer. Returns [None] if the
given string is not a valid representation of an unsigned integer. *)

val pp : Format.formatter -> t -> unit
val pp : Format.formatter -> t -> unit [@@ocaml.toplevel_printer]
(** Output the result of {!to_string} on a formatter. *)

val pp_hex : Format.formatter -> t -> unit
Expand Down
7 changes: 0 additions & 7 deletions top/dune

This file was deleted.

32 changes: 0 additions & 32 deletions top/install_integer_printers.ml

This file was deleted.

1 change: 0 additions & 1 deletion top/install_integer_printers.mli

This file was deleted.

31 changes: 0 additions & 31 deletions top/integer_printers.ml

This file was deleted.

21 changes: 0 additions & 21 deletions top/integer_printers.mli

This file was deleted.

0 comments on commit 613de42

Please sign in to comment.