From: Basile Clement <email@example.com> To: Kenichi Asai <firstname.lastname@example.org>, email@example.com Subject: Re: [Caml-list] line breaking Date: Fri, 11 Jun 2021 08:21:07 +0200 [thread overview] Message-ID: <firstname.lastname@example.org> (raw) In-Reply-To: <20210611061824.GA5373@pllab.is.ocha.ac.jp> https://github.com/ocaml-ppx/ocamlformat is not exactly what you are asking for but might fit the bill - Basile On Fri, 2021-06-11 at 15:18 +0900, Kenichi Asai wrote: > Once line breaks are inserted, one can use ocp-indent to properly > indent OCaml code. Is there a tool to insert line breaks (somehow) to > OCaml code that are written with insufficient (or no) line breaks? > > I could think of writing a compiler (using compiler-libs) that parses > the input and immediately pretty print it, but that would remove all > the comments in the program. >
next prev parent reply other threads:[~2021-06-11 6:21 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-06-11 6:18 Kenichi Asai 2021-06-11 6:21 ` Basile Clement [this message] 2021-06-14 0:54 ` Francois Berenger
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --email@example.com \ --firstname.lastname@example.org \ --email@example.com \ --firstname.lastname@example.org \ --subject='Re: [Caml-list] line breaking' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).