Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
AUTHOR
- Dr. Alistair Ward
DESCRIPTION
- An interface for vector-like data which is orientated to the edges of the board.
Synopsis
- class Orientated a where
- isDiagonal :: a -> Bool
- isParallel :: a -> Bool
- isStraight :: a -> Bool
Type-classes
class Orientated a where Source #
An interface for vector-like data.
:: a | |
-> Bool | Whether it is diagonal wrt the edges of the board. |
:: a | |
-> Bool | Whether it is parallel to an edge of the board. |
isStraight :: a -> Bool Source #
Instances
Orientated Direction Source # | |
Defined in BishBosh.Attribute.Direction isDiagonal :: Direction -> Bool Source # isParallel :: Direction -> Bool Source # isStraight :: Direction -> Bool Source # | |
Orientated Vector Source # | |
Defined in BishBosh.Cartesian.Vector isDiagonal :: Vector -> Bool Source # isParallel :: Vector -> Bool Source # isStraight :: Vector -> Bool Source # | |
Orientated Move Source # | |
Defined in BishBosh.Component.Move isDiagonal :: Move -> Bool Source # isParallel :: Move -> Bool Source # isStraight :: Move -> Bool Source # |