| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
BishBosh.Property.Orientated
Contents
Description
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.
Minimal complete definition
Methods
Arguments
| :: a | |
| -> Bool | Whether it is diagonal wrt the edges of the board. |
Arguments
| :: 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 Methods isDiagonal :: Direction -> Bool Source # isParallel :: Direction -> Bool Source # isStraight :: Direction -> Bool Source # | |
| (Eq distance, Num distance) => Orientated (Vector distance) Source # | |
Defined in BishBosh.Cartesian.Vector Methods isDiagonal :: Vector distance -> Bool Source # isParallel :: Vector distance -> Bool Source # isStraight :: Vector distance -> Bool Source # | |
| (Enum x, Enum y) => Orientated (Move x y) Source # | |
Defined in BishBosh.Component.Move Methods isDiagonal :: Move x y -> Bool Source # isParallel :: Move x y -> Bool Source # isStraight :: Move x y -> Bool Source # | |