1
1
mirror of https://github.com/google/ormolu.git synced 2024-12-11 21:09:47 +03:00
ormolu/data/examples/declaration/class/multi-parameters-out.hs
yumiova ba64967c03 Implement properly indented constraint contexts
Essentially, it simply indents the constraints one layer, instead of hanging the constraints off of `class` or `instance`.
2019-06-28 21:09:15 +02:00

36 lines
383 B
Haskell

{-# LANGUAGE MultiParamTypeClasses #-}
class Foo a b where
foo :: a -> b
-- | Something.
class Bar a b c d where
bar
:: a
-> b
-> c
-> d
class -- Before name
Baz where
baz :: Int
-- | Something else.
class
BarBaz
a -- Foo
b -- Bar
c -- Baz bar
d -- Baz baz
e -- Rest
f where
barbaz
:: a -> f
bazbar
:: e
-> f