Indent policy left not respected for LHS parens #254

Open
opened 2019-08-22 17:25:23 +02:00 by eborden · 0 comments
eborden commented 2019-08-22 17:25:23 +02:00 (Migrated from github.com)

Indent policy left is not being respected when the RHS of an operator is within parenthesis.

compare

foo = do
  this expression
    <$$> this
    . is
    . a
    . long
    . composition
    . with
    . many
    . functions
    . with
    . parenthesis

to

foo = do
  this expression
    <$$> (this
         . is
         . a
         . long
         . composition
         . with
         . many
         . functions
         . with
         . parenthesis
         )

For indent policy left the above should be:

foo = do
  this expression
    <$$>
      ( this
      . is
      . a
      . long
      . composition
      . with
      . many
      . functions
      . with
      . parenthesis
      )
Indent policy left is not being respected when the RHS of an operator is within parenthesis. compare ```hs foo = do this expression <$$> this . is . a . long . composition . with . many . functions . with . parenthesis ``` to ```hs foo = do this expression <$$> (this . is . a . long . composition . with . many . functions . with . parenthesis ) ``` For indent policy left the above should be: ```hs foo = do this expression <$$> ( this . is . a . long . composition . with . many . functions . with . parenthesis ) ```
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#254
There is no content yet.