You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The heuristic for determining whether the body of a function declaration is placed on a newline seems rather conservative and can lead to seemingly wasted horizontal space, especially when mixed with val declarations that do not seem to use the same heuristic.
❯ smlfmt -max-width 45 --preview-only z.sml
---- z.sml ----
infixr 1 $
val f = fn (g, x) => x
val f = fn (g, x) => g x
val f = fn (g, x) => g $ x
val f = fn (g, x) => g $ g x
val f = fn (g, x) => g $ g $ x
val f = fn (g, x) => g $ g $ g x
val f = fn (g, x) => g $ g $ g $ x
val f = fn (g, x) => g $ g $ g $ g x
val f = fn (g, x) => g $ g $ g $ g $ x
val f = fn (g, x) => g $ g $ g $ g $ g x
val f = fn (g, x) => g $ g $ g $ g $ g $ x
val f = fn (g, x) => g $ g $ g $ g $ g $ g x
val f = fn (g, x) =>
g $ g $ g $ g $ g $ g $ x
fun f (g, x) = x
fun f (g, x) = g x
fun f (g, x) = g $ x
fun f (g, x) = g $ g x
fun f (g, x) = g $ g $ x
fun f (g, x) =
g $ g $ g x
fun f (g, x) =
g $ g $ g $ x
fun f (g, x) =
g $ g $ g $ g x
fun f (g, x) =
g $ g $ g $ g $ x
fun f (g, x) =
g $ g $ g $ g $ g x
fun f (g, x) =
g $ g $ g $ g $ g $ x
fun f (g, x) =
g $ g $ g $ g $ g $ g x
fun f (g, x) =
g $ g $ g $ g $ g $ g $ x
--------
The text was updated successfully, but these errors were encountered:
The heuristic for determining whether the body of a function declaration is placed on a newline seems rather conservative and can lead to seemingly wasted horizontal space, especially when mixed with val declarations that do not seem to use the same heuristic.
The text was updated successfully, but these errors were encountered: