I have noticed that currently roc fmt removes unit types from function type args:
G : () -> Str
is formatted as:
G : -> Str
Not sure if I'm missing something but this seems to fix this issue:
https://github.com/roc-lang/roc/pull/8519
My first PR into roc main repo - not sure if I'm doing this correctly.
Feel free to close the PR if it doesn't make sense.
Thanks @Artur Domurad! I will take a look later today.
Last updated: Dec 21 2025 at 12:15 UTC