mirror of
https://github.com/google/ormolu.git
synced 2024-12-11 21:09:47 +03:00
ba64967c03
Essentially, it simply indents the constraints one layer, instead of hanging the constraints off of `class` or `instance`.
20 lines
307 B
Haskell
20 lines
307 B
Haskell
{-# LANGUAGE FunctionalDependencies #-}
|
|
|
|
-- | Something.
|
|
class Foo a b | a -> b
|
|
|
|
class Bar a b | a -> b, b -> a where
|
|
|
|
bar :: a
|
|
|
|
-- | Something else.
|
|
class
|
|
Baz a b c d
|
|
| a b -> c d -- Foo
|
|
, b c -> a d -- Bar
|
|
, a c -> b d -- Baz
|
|
, a c d -> b
|
|
, a b d -> a b c d where
|
|
|
|
baz :: a -> b
|