caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] TypeRex: indenting let open Mod in
@ 2012-05-08 21:25 Joel Reymont
  2012-05-08 22:01 ` Daniel Bünzli
  0 siblings, 1 reply; 2+ messages in thread
From: Joel Reymont @ 2012-05-08 21:25 UTC (permalink / raw)
  To: caml-list

Is there a way to get this layout with TypeRex?

let alert ctx x =
  let open Alert in
  Printf.printf "...Alert: type = %s, status = %s\n"
    (Type.to_string (type_ x)) (status x);
  flush stdout

    Thanks, Joel

--------------------------------------------------------------------------
Working on AlgoKit, a new algorithmic trading platform using Rithmic R|API
---------------------+------------+---------------------------------------
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
---------------------+------------+---------------------------------------

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

* Re: [Caml-list] TypeRex: indenting let open Mod in
  2012-05-08 21:25 [Caml-list] TypeRex: indenting let open Mod in Joel Reymont
@ 2012-05-08 22:01 ` Daniel Bünzli
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Bünzli @ 2012-05-08 22:01 UTC (permalink / raw)
  To: Joel Reymont; +Cc: caml-list



Le mardi, 8 mai 2012 à 23:25, Joel Reymont a écrit :

> Is there a way to get this layout with TypeRex?


I don't think so, I have the same problem; and that's just one example of a wrong identation pattern with typerex. It is unfortunately based on the completely broken tuareg-mode (which for reasons that are unknown to me seems to be preferred by many ocaml programmers to the better mode provided by the distribution). A reimplementation of the indentation engine is however planned :  

https://github.com/OCamlPro/typerex/issues/10#issuecomment-4132259

Best,

Daniel




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

end of thread, other threads:[~2012-05-08 22:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-08 21:25 [Caml-list] TypeRex: indenting let open Mod in Joel Reymont
2012-05-08 22:01 ` Daniel Bünzli

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