Would it make sense to derive Ord, Enum, and Bounded instances for Direction g? I am working on a game that should work in any grid and it seems to me that "turning left," for example, is well defined in all grids and could be defined in terms of Enum and Bounded. Or perhaps some other functionality could be added for iterating through directions, maybe with a different type class?
Would it make sense to derive
Ord,Enum, andBoundedinstances forDirection g? I am working on a game that should work in any grid and it seems to me that "turning left," for example, is well defined in all grids and could be defined in terms ofEnumandBounded. Or perhaps some other functionality could be added for iterating through directions, maybe with a different type class?