Joel Reymont
Joel Reymont

Reputation: 871

Indenting let open Mod in

Is there a way to get this kind of layout from 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

I end up with this instead which to me looks suboptimal

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

Upvotes: 3

Views: 236

Answers (1)

Çağdaş Bozman
Çağdaş Bozman

Reputation: 2540

Typerex does not implement indentation yet. We are still using tuareg-mode's indentation, but a reimplementation is planed.

Upvotes: 3

Related Questions