Do not add parens around exprs if they are not needed in formatting

This commit is contained in:
Chadtech 2021-10-16 13:30:32 -04:00
parent 8a4975ee8a
commit 2ca9dad156
3 changed files with 33 additions and 4 deletions

View file

@ -18,7 +18,7 @@ use roc_region::all::Located;
/// Just (Just a)
/// List (List a)
/// reverse (reverse l)
#[derive(PartialEq, Eq, Clone, Copy)]
#[derive(PartialEq, Eq, Clone, Copy, Debug)]
pub enum Parens {
NotNeeded,
InFunctionType,