brittany icon indicating copy to clipboard operation
brittany copied to clipboard

Indent policy left not respected for LHS parens

Open eborden opened this issue 6 years ago • 0 comments

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
      )

eborden avatar Aug 22 '19 15:08 eborden