hydromatic / morel

Standard ML interpreter, with relational extensions, implemented in Java
Apache License 2.0
291 stars 15 forks source link

Indent tuples when printing #206

Closed julianhyde closed 7 months ago

julianhyde commented 7 months ago

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.