We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
pp
type a = int * int let pp ppf (x, y) = Format.fprintf ppf "%d/%d" x y let a_t = Repr.map ~pp Repr.unit (fun _ -> assert false) (fun _ -> ()) type b = a list [@@deriving repr] let () = let va = (42, 43) in Fmt.epr "%a\n%!" pp va; Fmt.epr "%a\n%!" (Repr.pp a_t) va; Fmt.epr "%a\n%!" (Repr.pp b_t) [ va ]
The above program running on the main branch produces:
42/43 42/43 [{}]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The above program running on the main branch produces:
The text was updated successfully, but these errors were encountered: