Skip to content

Indentation point missing for record data declarations #1044

Closed
@hvr

Description

@hvr

In order to support https://github.com/tibbe/haskell-style-guide/blob/master/haskell-style.md (c.f. #1042), the example below needs to be indent-able as:

data Person = Person
    { firstName :: !String  -- ^ First name
    , lastName  :: !String  -- ^ Last name
    , age       :: !Int     -- ^ Age
    } deriving (Eq, Show)

However, haskell-indentation-mode insists on indenting only to

data Person = Person
              { firstName :: !String  -- ^ First name
              , lastName  :: !String  -- ^ Last name
              , age       :: !Int     -- ^ Age
              } deriving (Eq, Show)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions