Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Hpong errors in Arch installation

By: a guest on Jan 9th, 2011  |  syntax: None  |  size: 1.69 KB  |  views: 81  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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)]'
clone this paste RAW Paste Data