Skip to content

Respect user newline in trailing Haddock comment #146

@brandonchinn178

Description

@brandonchinn178

#124 adds support for trailing Haddock comments in record fields. But if the user puts the Haddock comments on the same line, Fourmolu will force it to the next line:

------------------------ before

{ fooX :: Int -- ^ X
, fooY :: Int -- ^ Y
}

------------------------ after

{ fooX :: Int
-- ^ X
, fooY :: Int
-- ^ Y
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions