lspitzner / brittany

haskell source code formatter
GNU Affero General Public License v3.0
690 stars 72 forks source link

Consistent space usage of list-construction versus list-comprehension #257

Open lspitzner opened 5 years ago

lspitzner commented 5 years ago

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].