| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
BishBosh.StateProperty.View
Contents
Description
AUTHOR- Dr. Alistair Ward
DESCRIPTION- Permits construction & destruction of views of the board.
Synopsis
- class View view where
- fromAssocs :: [LocatedPiece] -> view
- toAssocs :: Seeker seeker => seeker -> [LocatedPiece]
- translate :: (Seeker seeker, View view) => seeker -> view
Type-classes
class View view where Source #
An interface which may be implemented by data which represent a view of the board.
Instances
| View MaybePieceByCoordinates Source # | |
Defined in BishBosh.State.MaybePieceByCoordinates Methods fromAssocs :: [LocatedPiece] -> MaybePieceByCoordinates Source # | |
| View CoordinatesByRankByLogicalColour Source # | |
Defined in BishBosh.State.CoordinatesByRankByLogicalColour Methods fromAssocs :: [LocatedPiece] -> CoordinatesByRankByLogicalColour Source # | |
Functions
toAssocs :: Seeker seeker => seeker -> [LocatedPiece] Source #
Deconstructor.