ennocramer / floskell

Floskell is a flexible Haskell source code pretty printer.
BSD 3-Clause "New" or "Revised" License
178 stars 22 forks source link

Weird extra newlines inserted in where clause #54

Closed MatthewScholefield closed 3 years ago

MatthewScholefield commented 3 years ago

Not sure why, but floskell (default settings within vscode), seems to want a double newline in-between statements in a where clause.

Original:

values = (d, e, f)
  where
    d = 1
    e = 2
    f = 3

Floskell formatted:

values = (d, e, f)
  where
    d = 1

    e = 2

    f = 3
MatthewScholefield commented 3 years ago

Oh, hmm, I guess this is intentional. I fixed this by adding {"formatting": {"options": {"decl-no-blank-lines": ["where"]}} to the config.