Skip to content

Cannot seem to use to_formatter within custom #22

Open
@smondet

Description

@smondet

I think it could be because of the call to flush
https://github.com/mjambon/easy-format/blob/master/src/easy_format.ml#L620

What I'm trying to do looks like:

custom (fun ppf ->
   (* .. bunch of pp_stuff ... *)
   List.iter a_few_easy_format_dot_ts ~f:(fun ef ->
      (* ... *)
     Easy_format.Pretty.to_formatter ppf ef
      (* ... *)
   ) ;
  (* ... more pp_stuff ... *)
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions