<br><div class="gmail_quote">On Jan 5, 2008 1:35 PM, Stephan Friedrichs <<a href="mailto:firstname.lastname@example.org">email@example.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
-----BEGIN PGP SIGNED MESSAGE-----<br>Hash: SHA1<br><br>Hi Haskellers,<br><br>the paper "Data Parallel Haskell: a status report" (Chakravarty,<br>Leshchinskiy, Peyton Jones, Keller and Marlow) is an important source of
<br>my seminar handout about skeletons and parallelisation. It contains code<br>samples concerning the ArrElem type family:<br><br>class ArrElem e where<br> data [:e:]<br> (!:) :: [:e:] -> Int -> e<br>
<br>and various instance declarations, e.g.:<br><br>class ArrElem Int where -- sic!<br> -- ...<br><br>My question is: Is "class ArrElem Int" a typo and should be "instance<br>ArrElem Int" or did I get something wrong?
<br><br>Thanks in advance and a happy new year<br> - Stephan<br></blockquote><div><br>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. (?)