Stream: contributing

Topic: roc fmt removes unit type from function type args


view this post on Zulip Artur Domurad (Nov 30 2025 at 21:26):

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.

view this post on Zulip Anton (Dec 01 2025 at 12:43):

Thanks @Artur Domurad! I will take a look later today.


Last updated: Dec 21 2025 at 12:15 UTC