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

Open
opened 2019-09-02 17:31:07 +02:00 by lspitzner · 0 comments
lspitzner commented 2019-09-02 17:31:07 +02:00 (Migrated from github.com)

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

This looks a bit strange: ~~~~.hs -- 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]`.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: hexagoxel/brittany#257
There is no content yet.