Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
AUTHOR
- Dr. Alistair Ward
DESCRIPTION
- An interface for data which can be transformed by reflection.
- class ReflectableOnX a where
- class ReflectableOnY a where
Type-classes
class ReflectableOnX a where Source #
An interface which data which can be transformed by reflection about the x-axis, may implement.
:: a | |
-> a | Reflect about the x-axis, i.e. to top to bottom & vice-versa. |
class ReflectableOnY a where Source #
An interface which data which can be transformed by reflection about the y-axis, may implement.
:: a | |
-> a | Reflect about the y-axis, i.e. left to right & vice-versa. |
ReflectableOnY Direction Source # | |
Enum x => ReflectableOnY (Coordinates x y) Source # | |
Enum x => ReflectableOnY (Move x y) Source # | |
(Enum x, Enum y, Ord x, Ord y) => ReflectableOnY (MaybePieceByCoordinates x y) Source # | |
(Enum x, Enum y, Ord x, Ord y) => ReflectableOnY (Board x y) Source # | |