Skip to content
This repository was archived by the owner on Dec 26, 2021. It is now read-only.
This repository was archived by the owner on Dec 26, 2021. It is now read-only.

Improve automatic vertical alignment #8

@HarrisonGrodin

Description

@HarrisonGrodin

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:

  • fun declarations
fun foo (0 : int) (y : string) = y
  | foo _         (z as y')    = ""
  • and bindings
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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions