Skip to content

Comment issues with record formatting #273

Closed
@jaspervdj

Description

@jaspervdj

Here is a datatype with some comments:

data Foo = Foo
   { -- | This is a comment above some line.
    -- It can span multiple lines.
     fooName :: String
   , fooAge :: Int
     -- ^ This is a comment below some line.
     -- It can span multiple lines.
   }

Here is what stylish-haskell-0.10.0.0 produces:

data Foo = Foo
    { fooName :: String
    , fooAge  :: Int
    -- ^ This is a comment below some line.
    }

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