Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data CardinalDirection
- _North :: Prism' CardinalDirection ()
- _East :: Prism' CardinalDirection ()
- _South :: Prism' CardinalDirection ()
- _West :: Prism' CardinalDirection ()
- oppositeDirection :: CardinalDirection -> CardinalDirection
- data InterCardinalDirection
- _NorthWest :: Prism' InterCardinalDirection ()
- _NorthEast :: Prism' InterCardinalDirection ()
- _SouthEast :: Prism' InterCardinalDirection ()
- _SouthWest :: Prism' InterCardinalDirection ()
- interCardinalsOf :: CardinalDirection -> Two InterCardinalDirection
Documentation
data CardinalDirection Source #
Instances
_North :: Prism' CardinalDirection () Source #
_East :: Prism' CardinalDirection () Source #
_South :: Prism' CardinalDirection () Source #
_West :: Prism' CardinalDirection () Source #
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.