on bdb22b9 help sign in
ormolu/data/examples/declaration/instance/single-parameter.hs
8 lines 122 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