brittany icon indicating copy to clipboard operation
brittany copied to clipboard

Consistent space usage of list-construction versus list-comprehension

Open lspitzner opened this issue 6 years ago • 0 comments

This looks a bit strange:

-- brittany --columns 30
foo =
  [ [1, 2]
  , [ 3 | True ]
  , [4 .. 5]
  ]

#104 discussed spaces in lists before, but did not consider (single-line) list comprehensions.

I am not sure yet what we want here. We could keep it inconsistent, or change to either [ 1, 2 ] or [3 | True].

lspitzner avatar Sep 02 '19 15:09 lspitzner