dottedmag vertex cat hs class Foo where baz Bool class Bar where baz B

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
[dottedmag@vertex:~]1% cat a.hs
class Foo a where
baz :: a -> Bool
class Bar a where
baz :: a -> Bool
[dottedmag@vertex:~]% ghc a.hs
a.hs:5:2:
Multiple declarations of `Main.baz'
Declared at: a.hs:2:2
a.hs:5:2