stylish-haskell icon indicating copy to clipboard operation
stylish-haskell copied to clipboard

module_header comment in export list incorrectly placed

Open EncodePanda opened this issue 3 years ago • 0 comments

If the exported element has a comment assigned to it (placed on the same line), after formatting the comment is placed one line below the exported element

Example:

Before:

module Ouroboros.Consensus.ByronSpec.Ledger.Block (
    ByronSpecBlock(..)
  , ByronSpecHeader -- type alias
  , Header(..)
  , BlockConfig(..)

After:

module Ouroboros.Consensus.ByronSpec.Ledger.Block (
    ByronSpecBlock (..)
  , ByronSpecHeader
    -- type alias
  , BlockConfig (..)
  ) where

EncodePanda avatar Mar 23 '21 10:03 EncodePanda