caml-list - the Caml user's mailing list
 help / 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, back to index

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

caml-list - the Caml user's mailing list

Archives are clonable: git clone --mirror https://inbox.ocaml.org/caml-list

AGPL code for this site: git clone https://public-inbox.org/ public-inbox