fork(4) download
  1. x = 1
  2.  
  3. f1 :: Int -> IO()
  4. f1 = print
  5.  
  6. f2 :: Integer -> IO()
  7. f2 = print
  8. main = do
  9. f1 x
  10. f2 x
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:10:5:
    Couldn't match expected type `Integer' with actual type `Int'
    In the first argument of `f2', namely `x'
    In a stmt of a 'do' block: f2 x
stdout
Standard output is empty