main = putStrLn m
Standard input is empty
[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, ....]
Standard output is empty