Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indent tuples when printing #206

Closed
julianhyde opened this issue Nov 22, 2023 · 0 comments
Closed

Indent tuples when printing #206

julianhyde opened this issue Nov 22, 2023 · 0 comments

Comments

@julianhyde
Copy link
Collaborator

Tuples should be indented when printing, just as lists are today.

For example, a long tuple on a short line today appears as

val y = ([1,2,3],[4,5],[6],[]);
> val it =
>   ([1,2,3],[4,5],[6],
>   [])
>   : int list * int list * int list * 'a list

but should appear as

val y = ([1,2,3],[4,5],[6],[]);
> val it =
>   ([1,2,3],[4,5],[6],
>    [])
>   : int list * int list * int list * 'a list

Note that []) should be indented 3 where ([1,2,3],[4,5],[6], is only indented 2.

julianhyde added a commit to julianhyde/morel that referenced this issue Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant