ormolu-0.0.1.0: data/examples/declaration/class/default-implementations.hs
module Main where
-- | Foo
class Foo a where
foo :: a -> a
foo a = a
-- | Bar
class Bar a where
bar ::
a
-> Int
bar = const 0
module Main where
-- | Foo
class Foo a where
foo :: a -> a
foo a = a
-- | Bar
class Bar a where
bar ::
a
-> Int
bar = const 0