fork(1) download
  1. class A a where
  2. f :: a
  3.  
  4. class A a => B a where
  5. g :: a
  6. f = g
  7.  
  8. instance B Int where
  9. g = 42
  10.  
  11. main = print (f :: Int)
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
[1 of 1] Compiling Main             ( prog.hs, prog.o )

prog.hs:6:3: `f' is not a (visible) method of class `B'
stdout
Standard output is empty