fork download
  1. main = print $ scanl1 (,) $ [2, 3, 4, 5, 6, 7]
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:1:22:
    Occurs check: cannot construct the infinite type: a = (a, a)
      Expected type: a -> a -> a
      Inferred type: a -> a -> (a, a)
    In the first argument of `scanl1', namely `(,)'
    In the first argument of `($)', namely `scanl1 (,)'
stdout
Standard output is empty