AP
Size: a a a
AP
A
AP
A
A
A
class Game g where
. . .
instance Game ([Int],[Int]) where
A
к
к
A
• Illegal instance declaration for ‘Game ([Int], [Int])’
(All instance types must be of the form (T a1 ... an)
where a1 ... an are *distinct type variables*,
and each type variable appears at most once in the instance head.
Use FlexibleInstances if you want to disable this.)
• In the instance declaration for ‘Game ([Int], [Int])’
к
A
type GameState a = ([a],[a])
instance Game (GameState Int) where
к
Use FlexibleInstances if you want to disable this.
A
A
A
(
class Game g where
. . .
instance Game ([Int],[Int]) where
g
кайнд какой?к
FlexibleInstances,
TypeSynonym #-}A
к