nblockchain/fantomless

[Feature request] Remove unneeded parentheses in match cases

knocte opened this issue · 1 comments

Test1:

match foo with
| (Bar) -> ()
| _ -> ()

should become:

match foo with
| Bar -> ()
| _ -> ()

Test2:

match foo with
| (Bar baz) -> ()
| _ -> ()

should become:

match foo with
| (Bar baz) -> ()
| _ -> ()

(should not change)

Fixed in d5636e2