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