fork download
  1.  
  2. m = foldr (max) 0 [0,1,4,10,3]
  3. main = putStrLn m
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:2:17: error:
    • No instance for (Num String) arising from the literal ‘0’
    • In the second argument of ‘foldr’, namely ‘0’
      In the expression: foldr (max) 0 [0, 1, 4, 10, ....]
      In an equation for ‘m’: m = foldr (max) 0 [0, 1, 4, ....]
stdout
Standard output is empty