autoformat
autoformat copied to clipboard
Improve automatic vertical alignment
At the moment, the => in rules are vertically aligned. We should attempt similar treatment in a variety of cases, including some or all of the following:
-
fundeclarations
fun foo (0 : int) (y : string) = y
| foo _ (z as y') = ""
-
andbindings
datatype stuff = Foo | Bar of bar
and 'a things = Some | Other of 'a | Constructors
- tuple/list/record patterns
fn (SOME x, SOME y) => x + y
| (SOME x, NONE ) => x
| (NONE , SOME y) => y
| (NONE , NONE ) => 0
case e of
(1 , _) => "a"
| (2345, _) => "b"
| _ => "c"