Guest User

Untitled

a guest
Nov 17th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. list1 ++ list2
  2.  
  3. oldNumbers = [1,5,14,22,37]
  4. newNumbers = [3,10,17,27,34,69]
  5. allNumbers = oldNumbers:newNumbers
  6.  
  7. error:
  8. * Non type-variable argument in the constraint: Num [a]
  9. (Use FlexibleContexts to permit this)
  10. * When checking the inferred type
  11. allNumbers :: forall a. (Num a, Num [a]) => [[a]]
Add Comment
Please, Sign In to add comment