fork download
  1. main = do
  2. [a, b] <- getArgs
  3. putStr $ show $ (read a) + (read b)
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
2 3
compilation info
[1 of 1] Compiling Main             ( prog.hs, prog.o )

prog.hs:2:19: error: Variable not in scope: getArgs :: IO [String]
  |
2 |         [a, b] <- getArgs
  |                   ^^^^^^^
stdout
Standard output is empty