on 8cb86d3 help sign in
ormolu/data/examples/declaration/class/default-implementations.hs
12 lines 145 B history raw
1-- | Foo
2class Foo a where
3 foo :: a -> a
4 foo a = a
6-- | Bar
7class Bar a where
8 bar ::
9 a
10 -> Int
11 bar = const 0