Advertisement
Guest User

Hpong errors in Arch installation

a guest
Jan 9th, 2011
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. HPong.hs:108:4:
  2. No instance for (ColorComponent Double)
  3. arising from a use of `color' at HPong.hs:108:4-8
  4. Possible fix:
  5. add an instance declaration for (ColorComponent Double)
  6. In the first argument of `($)', namely `color'
  7. In a stmt of a 'do' expression: color $ color3 1 0 0
  8. In the expression:
  9. do { (Game ps cs py cy bx by _ _) <- get game;
  10. clear [ColorBuffer, DepthBuffer];
  11. color $ color3 1 0 0;
  12. rectangle paddleX py paddleW paddleH;
  13. .... }
  14.  
  15. HPong.hs:115:8:
  16. No instance for (MatrixComponent Float)
  17. arising from a use of `translate' at HPong.hs:115:8-16
  18. Possible fix:
  19. add an instance declaration for (MatrixComponent Float)
  20. In the first argument of `($)', namely `translate'
  21. In a stmt of a 'do' expression:
  22. translate $ Vector3 50 350 (0 :: Float)
  23. In the second argument of `($)', namely
  24. `do { translate $ Vector3 50 350 (0 :: Float);
  25. renderString Fixed8x16 . ("You: " ++) $ show ps;
  26. translate $ Vector3 450 0 (0 :: Float);
  27. renderString Fixed8x16 . ("CPU: " ++) $ show cs }'
  28.  
  29. HPong.hs:128:51:
  30. No instance for (VertexComponent Double)
  31. arising from a use of `vertex' at HPong.hs:128:51-56
  32. Possible fix:
  33. add an instance declaration for (VertexComponent Double)
  34. In the first argument of `(.)', namely `vertex'
  35. In the first argument of `mapM_', namely `(vertex . vert2D)'
  36. In the second argument of `($)', namely
  37. `mapM_
  38. (vertex . vert2D)
  39. [(x - w / 2, y - h / 2), (x + w / 2, y - h / 2),
  40. (x + w / 2, y + h / 2), (x - w / 2, y + h / 2)]'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement