Domanda

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
È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top