Вопрос

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
Это было полезно?

Решение

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

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top