on 057977d help sign in
ormolu/data/examples/declaration/instance/single-parameter-out.hs
10 lines 113 B history raw
1instance Monoid Int where
3 (<>) x y = x + y
5instance Enum Int where
7 fromEnum x = x
9 toEnum = \x ->
10 x