fork download
  1. module TypeErrors where
  2. f xs = [True | _ <- repeat 0]
  3. x = (x, x)
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
[1 of 1] Compiling TypeErrors       ( prog.hs, prog.o )

prog.hs:3:6: error:
    • Occurs check: cannot construct the infinite type: t ~ (t, t1)
    • In the expression: x
      In the expression: (x, x)
      In an equation for ‘x’: x = (x, x)
    • Relevant bindings include x :: (t, t1) (bound at prog.hs:3:1)

prog.hs:3:9: error:
    • Occurs check: cannot construct the infinite type: t1 ~ (t, t1)
    • In the expression: x
      In the expression: (x, x)
      In an equation for ‘x’: x = (x, x)
    • Relevant bindings include x :: (t, t1) (bound at prog.hs:3:1)
stdout
Standard output is empty