fork(2) download
  1. import Prelude(print, Int)
  2.  
  3. length :: [a] -> Int
  4. length _ = 0
  5.  
  6. length :: [Int] -> Int
  7. length _ = 123
  8.  
  9. main = print (length [1, 2])
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:1:
    Duplicate type signatures for `length'
    at prog.hs:3:1-6
       prog.hs:6:1-6

prog.hs:7:1:
    Multiple declarations of `length'
    Declared at: prog.hs:4:1
                 prog.hs:7:1
stdout
Standard output is empty