Skip to content

Indentation point missing for record data declarations #1044

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
hvr opened this issue Dec 30, 2015 · 1 comment
Closed

Indentation point missing for record data declarations #1044

hvr opened this issue Dec 30, 2015 · 1 comment

Comments

@hvr
Copy link
Member

hvr commented Dec 30, 2015

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)
@geraldus
Copy link
Contributor

geraldus commented Jan 1, 2016

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants