hindent icon indicating copy to clipboard operation
hindent copied to clipboard

Wrong formatting of records being parts of data families?

Open michalrus opened this issue 7 years ago • 0 comments

E.g. this fragment was autoformatted:

instance GM 'Practice where
  data MatchConfig 'Practice = MatchConfig'Practice{teamSize ::
                                                  Int,
                                                  ladder :: Ladder}
                               deriving (Generic, Show, Eq)

I would rather expect something like this to happen:

instance GM 'Practice where
  data MatchConfig 'Practice = MatchConfig'Practice
    { teamSize :: Int
    , ladder :: Ladder }

… as it would happen, were this a regular top-level record.

michalrus avatar Mar 27 '18 23:03 michalrus