fork download
  1. main = print "1138"
  2.  
  3. fn :: [Char] -> a
  4. fn list = 2 * length list
  5.  
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:15:
    Couldn't match expected type `a' with actual type `Int'
      `a' is a rigid type variable bound by
          the type signature for fn :: [Char] -> a at prog.hs:3:7
    In the return type of a call of `length'
    In the second argument of `(*)', namely `length list'
    In the expression: 2 * length list
stdout
Standard output is empty