on 8cb86d3 help sign in
ormolu/data/examples/declaration/instance/single-parameter-out.hs
11 lines 161 B history raw
1instance Monoid Int where (<>) x y = x + y
3instance Enum Int where
5 fromEnum x = x
7 toEnum =
8 \x ->
9 x
11instance Foo Int where foo x = x; bar y = y