a = Nothing b = [a, Just "Hi"] c = [a, Just 'c'] main = print b
Standard input is empty
[1 of 1] Compiling Main ( prog.hs, prog.o ) prog.hs:4:14: Couldn't match type `Char' with `[Char]' Expected type: String Actual type: Char In the first argument of `Just', namely 'c' In the expression: Just 'c' In the expression: [a, Just 'c']
Standard output is empty