lspitzner / brittany

haskell source code formatter
GNU Affero General Public License v3.0
691 stars 67 forks source link

Unnecessary line break before list comprehension #283

Open expipiplus1 opened 4 years ago

expipiplus1 commented 4 years ago
foo =
  let r =
          [ m | m <- foooooooooooooooooooooooooooooooooooooooooooooooooooooooo ]
  in  ()

The break between r = and [ m is a little odd here.

This happens also without a single very long word

foo =
  let r =
          [ m
          | m <- foooooooooooooooooooo
          , fooooooooooooooooooooooooooo
          , fooooooooooooooooooooooooooo
          ]
  in  ()
tfausak commented 4 years ago

I suspect the same problems show up with regular lists as well.