on 397fc55 help sign in
ormolu/data/examples/declaration/class/default-implementations.hs
13 lines 163 B history raw
1module Main where
3-- | Foo
4class Foo a where
5 foo :: a -> a
6 foo a = a
8-- | Bar
9class Bar a where
10 bar ::
11 a
12 -> Int
13 bar = const 0