
While studying the vector space class in AFRP, I encountered the following strange code: class Floating a => VectorSpace v a | v -> a where ... v1 ^-^ v2 = v1 ^+^ v1 -- (negateVector v2) I have no idea why the (negateVector v2) has been commented out, but surely this must be a typo? Cheers, Peter

Certainly looks like a typo to me! Peter Verswyvelen wrote:
While studying the vector space class in AFRP, I encountered the following strange code:
class Floating a => VectorSpace v a | v -> a where ... v1 ^-^ v2 = v1 ^+^ v1 -- (negateVector v2)
I have no idea why the (negateVector v2) has been commented out, but surely this must be a typo?
Cheers, Peter

Hi Peter, Oops! Yes, as Paul says, clearly an error. My best guess is that it was commented out at some point for testing something, and then forgotten! The error does not occur in my local copy of the code, so a version skew problem to boot, I'm afraid. Best, /Henrik -- Henrik Nilsson School of Computer Science and Information Technology The University of Nottingham nhn@cs.nott.ac.uk This message has been checked for viruses but the contents of an attachment may still contain software viruses, which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.

Maybe you could place Yampa in a Darcs depot? I will have some time now to study Yampa and apps again. To train myself, I would try to make a simple bouncing ball, then a Pong like game, and then I would like to convert the C++ minigames I made for my students. These might serve as simple tutorials for other people? After revision of course, because I'm a newbie, so you can expect some horrible Haskell code ;) Cheers, Peter -----Original Message----- From: Henrik Nilsson [mailto:nhn@Cs.Nott.AC.UK] Sent: Monday, December 17, 2007 5:05 PM To: paul.hudak@yale.edu Cc: Peter Verswyvelen; haskell-cafe@haskell.org Subject: Re: [Haskell-cafe] Yampa / AFRPVectorSpace.hs Hi Peter, Oops! Yes, as Paul says, clearly an error. My best guess is that it was commented out at some point for testing something, and then forgotten! The error does not occur in my local copy of the code, so a version skew problem to boot, I'm afraid. Best, /Henrik -- Henrik Nilsson School of Computer Science and Information Technology The University of Nottingham nhn@cs.nott.ac.uk This message has been checked for viruses but the contents of an attachment may still contain software viruses, which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.

On Dec 17, 2007, at 4:30 PM, Peter Verswyvelen wrote:
Maybe you could place Yampa in a Darcs depot?
darcs get http://wagerlabs.com/yampa I think we should move it to Google Code, though. -- http://wagerlabs.com

joelr1:
On Dec 17, 2007, at 4:30 PM, Peter Verswyvelen wrote:
Maybe you could place Yampa in a Darcs depot?
darcs get http://wagerlabs.com/yampa
I think we should move it to Google Code, though.
How about code.haskell.org ? Get yr accounts here, http://community.haskell.org/admin/ -- Don
participants (5)
-
Don Stewart
-
Henrik Nilsson
-
Joel Reymont
-
Paul Hudak
-
Peter Verswyvelen