[Haskell-cafe] Trying to sort out multiparameter type classes and their instances

2009-12-01 Thread Jeremy Fitzhardinge
I'm playing around with some types to represent a game board (like Go, Chess, Scrabble, etc). I'm using a type class to represent the basic Board interface, so I can change the implementation freely: class Board b pos piece where -- Update board with piece played at pos play :: b pos

Re: [Haskell-cafe] Trying to sort out multiparameter type classes and their instances

2009-12-01 Thread Daniel Fischer
Am Dienstag 01 Dezember 2009 23:34:46 schrieb Jeremy Fitzhardinge: I'm playing around with some types to represent a game board (like Go, Chess, Scrabble, etc). I'm using a type class to represent the basic Board interface, so I can change the implementation freely: class Board b pos piece

Re: [Haskell-cafe] Trying to sort out multiparameter type classes and their instances

2009-12-01 Thread Jeremy Fitzhardinge
On 12/01/09 15:12, Daniel Fischer wrote: Am Dienstag 01 Dezember 2009 23:34:46 schrieb Jeremy Fitzhardinge: I'm playing around with some types to represent a game board (like Go, Chess, Scrabble, etc). I'm using a type class to represent the basic Board interface, so I can change the

Re: [Haskell-cafe] Trying to sort out multiparameter type classes and their instances

2009-12-01 Thread Daniel Fischer
Am Mittwoch 02 Dezember 2009 01:43:04 schrieb Jeremy Fitzhardinge: On 12/01/09 15:12, Daniel Fischer wrote: Am Dienstag 01 Dezember 2009 23:34:46 schrieb Jeremy Fitzhardinge: I'm playing around with some types to represent a game board (like Go, Chess, Scrabble, etc). I'm using a type

Re: [Haskell-cafe] Trying to sort out multiparameter type classes and their instances

2009-12-01 Thread Jeremy Fitzhardinge
On 12/01/09 17:38, Daniel Fischer wrote: Am Mittwoch 02 Dezember 2009 01:43:04 schrieb Jeremy Fitzhardinge: On 12/01/09 15:12, Daniel Fischer wrote: Am Dienstag 01 Dezember 2009 23:34:46 schrieb Jeremy Fitzhardinge: I'm playing around with some types to represent a game board