Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. f (x:xs) = if x > xs then x else xs
  2.  
  3.  
  4. Problem5.hs:5:18:
  5. Occurs check: cannot construct the infinite type: t = [t]
  6. Expected type: t
  7. Inferred type: [t]
  8. In the second argument of `(>)', namely `xs'
  9. In the expression: x > xs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement