caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] line breaking
@ 2021-06-11  6:18 Kenichi Asai
  2021-06-11  6:21 ` Basile Clement
  2021-06-14  0:54 ` Francois Berenger
  0 siblings, 2 replies; 3+ messages in thread
From: Kenichi Asai @ 2021-06-11  6:18 UTC (permalink / raw)
  To: caml-list

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.

-- 
Kenichi Asai

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-14  0:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-11  6:18 [Caml-list] line breaking Kenichi Asai
2021-06-11  6:21 ` Basile Clement
2021-06-14  0:54 ` Francois Berenger

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).