Safe Haskell | Safe |
---|---|

Language | Haskell2010 |

`AUTHOR`

- Dr. Alistair Ward
`DESCRIPTION`

- An interface for data which can be transformed by rotation.
- CAVEAT: only rotations in discrete 90-degrees steps are considered.

- class (ReflectableOnX a, ReflectableOnY a) => Rotatable a where

# Type-classes

class (ReflectableOnX a, ReflectableOnY a) => Rotatable a where Source #

An interface which data which can be transformed by rotation, may implement.

:: a | |

-> a | Rotate anticlockwise by 90 degrees, so that |

:: a | |

-> a | Rotate by 180 degrees. |

:: a | |

-> a | Rotate clockwise by 90 degrees, so that |