fork download
  1. a = Nothing
  2. b = [a, Just "Hi"]
  3. c = [a, Just 'c']
  4.  
  5. main = print b
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: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']
stdout
Standard output is empty