Safe Haskell | None |
---|---|
Language | Haskell2010 |
AUTHOR
- Dr. Alistair Ward
DESCRIPTION
- coordinate notation.
- CAVEAT: https://en.wikipedia.org/wiki/Chess_notation defined a variant of this notation.
- N.B.: used for communication via CECP with xboard.
Synopsis
- data Coordinate x y
- origin :: (Int, Int)
- regexSyntax :: String
- showsCoordinates :: (Enum x, Enum y) => Coordinates x y -> ShowS
- mkCoordinate :: Move x y -> Maybe Rank -> Coordinate x y
- mkCoordinate' :: Promotable promotable => Move x y -> promotable -> Coordinate x y
Types
Data-types
data Coordinate x y Source #
Defines a move, to enable io in Coordinate/-notation.
Instances
(Eq x, Eq y) => Eq (Coordinate x y) Source # | |
Defined in BishBosh.Notation.Coordinate (==) :: Coordinate x y -> Coordinate x y -> Bool # (/=) :: Coordinate x y -> Coordinate x y -> Bool # | |
(Enum x, Enum y, Ord x, Ord y) => Read (Coordinate x y) Source # | |
Defined in BishBosh.Notation.Coordinate readsPrec :: Int -> ReadS (Coordinate x y) # readList :: ReadS [Coordinate x y] # readPrec :: ReadPrec (Coordinate x y) # readListPrec :: ReadPrec [Coordinate x y] # | |
(Enum x, Enum y) => Show (Coordinate x y) Source # | |
Defined in BishBosh.Notation.Coordinate showsPrec :: Int -> Coordinate x y -> ShowS # show :: Coordinate x y -> String # showList :: [Coordinate x y] -> ShowS # | |
Promotable (Coordinate x y) Source # | |
Defined in BishBosh.Notation.Coordinate getMaybePromotionRank :: Coordinate x y -> Maybe Rank Source # |
Constants
regexSyntax :: String Source #
Defines using a regex, the required syntax.
Functions
showsCoordinates :: (Enum x, Enum y) => Coordinates x y -> ShowS Source #
Shows the specified coordinates.
Constructors
mkCoordinate :: Move x y -> Maybe Rank -> Coordinate x y Source #
Smart constructor.
mkCoordinate' :: Promotable promotable => Move x y -> promotable -> Coordinate x y Source #
Smart constructor.