Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
AUTHOR
- Dr. Alistair Ward
DESCRIPTION
- An interface for data which can be transformed by reflection.
Synopsis
- class ReflectableOnX a where
- reflectOnX :: a -> a
- class ReflectableOnY a where
- reflectOnY :: a -> a
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. |
Instances
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. |
Instances
ReflectableOnY Direction Source # | |
Defined in BishBosh.Attribute.Direction reflectOnY :: Direction -> Direction Source # | |
Enum x => ReflectableOnY (Coordinates x y) Source # | |
Defined in BishBosh.Cartesian.Coordinates reflectOnY :: Coordinates x y -> Coordinates x y Source # | |
Enum x => ReflectableOnY (Move x y) Source # | |
Defined in BishBosh.Component.Move reflectOnY :: Move x y -> Move x y Source # | |
(Enum x, Enum y, Ord x, Ord y) => ReflectableOnY (MaybePieceByCoordinates x y) Source # | |
Defined in BishBosh.State.MaybePieceByCoordinates reflectOnY :: MaybePieceByCoordinates x y -> MaybePieceByCoordinates x y Source # | |
(Enum x, Enum y, Ord x, Ord y) => ReflectableOnY (Board x y) Source # | |
Defined in BishBosh.State.Board reflectOnY :: Board x y -> Board x y Source # |