| Safe Haskell | Safe | 
|---|---|
| Language | Haskell2010 | 
BishBosh.Property.Reflectable
Contents
Description
- 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.
Minimal complete definition
Methods
Arguments
| :: a | |
| -> a | Reflect about the x-axis, i.e. to top to bottom & vice-versa. | 
Instances
class ReflectableOnY a where Source #
An interface which data which can be transformed by reflection about the y-axis, may implement.
Minimal complete definition
Methods
Arguments
| :: a | |
| -> a | Reflect about the y-axis, i.e. left to right & vice-versa. | 
Instances
| 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 # | |