brittany icon indicating copy to clipboard operation
brittany copied to clipboard

Support formatting of sum types?

Open vaclavsvejcar opened this issue 5 years ago • 2 comments

I'm really happy with data record types formatting in Brittany (as implemented in #161 - thank you very much @eborden), but it looks that we still don't have support for formatting sum types, such as for

data RunMode
  = Add
  | Drop
  | Replace
  deriving (Eq, Show)

Is there any plan to add support for this in recent future?

vaclavsvejcar avatar Apr 03 '20 16:04 vaclavsvejcar

@vaclavsvejcar I have a branch with some of the work for this on it. I just haven't been able to get back to it. I'll get it back onto my todo list. It is something productive I can get done during social distancing.

eborden avatar Apr 06 '20 14:04 eborden

Refreshed my old work and opened a PR over here. There is work left to do, but hopefully this gets this issue moving.

https://github.com/lspitzner/brittany/pull/294

eborden avatar Apr 10 '20 16:04 eborden