bishbosh-0.1.4.0: Plays chess.
Safe HaskellNone
LanguageHaskell2010

BishBosh.Notation.PureCoordinate

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
Synopsis

Types

Data-types

Constants

notation :: Notation Source #

Define the parameters of the notation, using the minimum permissible values for x & y coordinates.

regexSyntax :: String Source #

Defines using a regex, the required syntax.

Functions

abscissaParser :: TextParser X Source #

Parse an x-coordinate.

ordinateParser :: TextParser Y Source #

Parse a y-coordinate.

coordinatesParser :: TextParser Coordinates Source #

Parse a pair of coordinates.

Constructors

mkPureCoordinate Source #

Arguments

:: Move 
-> Maybe Rank

The optional promotion-rank.

-> PureCoordinate 

Smart constructor.

mkPureCoordinate' Source #

Arguments

:: Promotable promotable 
=> Move 
-> promotable

The datum from which to extract the optional promotion-rank.

-> PureCoordinate 

Smart constructor.

Predicates