ocamltyperex

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

Solution

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