Question concerning the "Data Parallel Haskell: a status report" paper
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Haskellers, the paper "Data Parallel Haskell: a status report" (Chakravarty, Leshchinskiy, Peyton Jones, Keller and Marlow) is an important source of my seminar handout about skeletons and parallelisation. It contains code samples concerning the ArrElem type family: class ArrElem e where data [:e:] (!:) :: [:e:] -> Int -> e and various instance declarations, e.g.: class ArrElem Int where -- sic! -- ... My question is: Is "class ArrElem Int" a typo and should be "instance ArrElem Int" or did I get something wrong? Thanks in advance and a happy new year - Stephan - -- Früher hieß es ja: Ich denke, also bin ich. Heute weiß man: Es geht auch so. - Dieter Nuhr -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkd/zecACgkQyui/cGVQfkizigCdHZ7DrL+v+OcyHZDF8hWk9jO7 fQEAnR5niACeaSASPLzMqfclirzjHPRU =Yvj6 -----END PGP SIGNATURE-----
On Jan 5, 2008 1:35 PM, Stephan Friedrichs <stephan.friedrichs@tu-bs.de> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi Haskellers,
the paper "Data Parallel Haskell: a status report" (Chakravarty, Leshchinskiy, Peyton Jones, Keller and Marlow) is an important source of my seminar handout about skeletons and parallelisation. It contains code samples concerning the ArrElem type family:
class ArrElem e where data [:e:] (!:) :: [:e:] -> Int -> e
and various instance declarations, e.g.:
class ArrElem Int where -- sic! -- ...
My question is: Is "class ArrElem Int" a typo and should be "instance ArrElem Int" or did I get something wrong?
Thanks in advance and a happy new year - Stephan
Since no one else seems to have responded yet -- that's pretty clearly a typo, should be 'instance' instead of 'class' just as you suppose, and similarly in the two instance declarations that follow after that. Unless there's something weird going on with associated type syntax that I'm not aware of. (?) -Brent
Stephan Friedrichs wrote:
class ArrElem Int where -- sic! -- ...
My question is: Is "class ArrElem Int" a typo and should be "instance ArrElem Int" or did I get something wrong?
Yes, that's a typo. Thanks for pointing it out. Roman
participants (3)
-
Brent Yorgey -
Roman Leshchinskiy -
Stephan Friedrichs