mirror of
https://github.com/google/ormolu.git
synced 2024-12-11 21:09:47 +03:00
bdc8738fa8
Certain other kinds of declarations (such as associated type signatures and bindings) are grouped together without newlines. The process for determining which declarations are grouped reuses the same logic as for modules.
33 lines
330 B
Haskell
33 lines
330 B
Haskell
{-# LANGUAGE TypeFamilies #-}
|
|
class Foo a where
|
|
|
|
data FooBar a
|
|
|
|
-- | Something.
|
|
class Bar a where
|
|
|
|
-- | Bar bar
|
|
data BarBar a
|
|
|
|
-- | Bar baz
|
|
data
|
|
BarBaz
|
|
a
|
|
|
|
-- | Something more.
|
|
class Baz a where
|
|
|
|
-- | Baz bar
|
|
data
|
|
BazBar
|
|
a
|
|
b
|
|
c
|
|
|
|
-- | Baz baz
|
|
data
|
|
BazBaz
|
|
b
|
|
a
|
|
c
|