Open brandonchinn178 opened 1 year ago
Sounds neat, being anticipatorily forward-compatible with https://github.com/ghc-proposals/ghc-proposals/pull/446 could be sufficient reason to change formatting here (multi-line deriving clauses are also usually pretty self-contained), such that this will be a fixed point:
deriving newtype
instance Show Foo
instance Read Foo
deriving via -- or also change the newline insertion here
(Hex Int) -- as suggested in your examples
instance
Show Foo
Read Foo
Without
DerivingStrategies
, it's reasonable to think that "deriving instance" together defines a standalone deriving statement, but withDerivingStrategies
, it seems more intuitive forderiving
+ the strategy to be one unit, andinstance
+ types being another. This makes the styling look just like a normalinstance
block.Current
Desired
Environment
Additional context Related: https://github.com/ghc-proposals/ghc-proposals/pull/446