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