-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Following haskell-style-guide data declarations should be indented as follows:
-
Basic case:
data Tree a = Branch !a !(Tree a) !(Tree a) | Leaf
-
Constructors with long names:
data HttpException = InvalidStatusCode Int | MissingContentHeader
-
Records
data Person = Person { firstName :: !String -- ^ First name , lastName :: !String -- ^ Last name , age :: !Int -- ^ Age } deriving (Eq, Show)
The current implementations handles the first two cases correctly, the problem is with record indentation:
data Person = Person
{ firstName :: !String -- ^ First name
, lastName :: !String -- ^ Last name
, age :: !Int -- ^ Age
} deriving (Eq, Show) Metadata
Metadata
Assignees
Labels
No labels