Copyright | (C) Frank Staals |
---|---|
License | see the LICENSE file |
Maintainer | Frank Staals |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
Documentation
data CardinalDirection Source #
The four cardinal directions.
Instances
oppositeDirection :: CardinalDirection -> CardinalDirection Source #
Computes the direction opposite to the given one.
data InterCardinalDirection Source #
Intercardinal directions
Instances
interCardinalsOf :: CardinalDirection -> Two InterCardinalDirection Source #
Get the two intercardinal directions, in increasing order, corresponding to the cardinal direction.