bishbosh-0.1.0.0: Plays chess.
Safe HaskellSafe-Inferred
LanguageHaskell2010

BishBosh.Property.ExtendedPositionDescription

Description

Synopsis

Type-classes

class ReadsEPD a where Source #

An alternative to Read.

Methods

readsEPD Source #

Arguments

:: ReadS a

Read a datum from EPD.

Instances

Instances details
ReadsEPD LogicalColour Source # 
Instance details

Defined in BishBosh.Attribute.LogicalColour

ReadsEPD Piece Source # 
Instance details

Defined in BishBosh.Component.Piece

(Enum x, Ord x, Show x) => ReadsEPD (CastleableRooksByLogicalColour x) Source # 
Instance details

Defined in BishBosh.State.CastleableRooksByLogicalColour

(Enum x, Enum y, Ord x, Ord y) => ReadsEPD (MaybePieceByCoordinates x y) Source # 
Instance details

Defined in BishBosh.State.MaybePieceByCoordinates

(Enum x, Enum y, Ord x, Ord y) => ReadsEPD (Board x y) Source # 
Instance details

Defined in BishBosh.State.Board

Methods

readsEPD :: ReadS (Board x y) Source #

(Enum x, Enum y, Ord x, Ord y, Show x, Show y) => ReadsEPD (Game x y) Source # 
Instance details

Defined in BishBosh.Model.Game

Methods

readsEPD :: ReadS (Game x y) Source #

class ShowsEPD a where Source #

An alternative to Show.

Methods

showsEPD Source #

Arguments

:: a 
-> ShowS

Stringify a EPD-datum.

Instances

Instances details
ShowsEPD LogicalColour Source # 
Instance details

Defined in BishBosh.Attribute.LogicalColour

ShowsEPD Piece Source # 
Instance details

Defined in BishBosh.Component.Piece

Methods

showsEPD :: Piece -> ShowS Source #

(Enum x, Eq x) => ShowsEPD (CastleableRooksByLogicalColour x) Source # 
Instance details

Defined in BishBosh.State.CastleableRooksByLogicalColour

(Enum x, Enum y, Ord x, Ord y) => ShowsEPD (MaybePieceByCoordinates x y) Source # 
Instance details

Defined in BishBosh.State.MaybePieceByCoordinates

(Enum x, Enum y, Ord x, Ord y) => ShowsEPD (Board x y) Source # 
Instance details

Defined in BishBosh.State.Board

Methods

showsEPD :: Board x y -> ShowS Source #

(Enum x, Enum y, Ord x, Ord y) => ShowsEPD (Game x y) Source # 
Instance details

Defined in BishBosh.Model.Game

Methods

showsEPD :: Game x y -> ShowS Source #

Constants

showsNullField :: ShowS Source #

The standard way to denote the absence of a field.

showsSeparator :: ShowS Source #

The standard separator between fields in EPD.

Functions

readEPD :: ReadsEPD a => String -> a Source #

Read from EPD.

showEPD :: ShowsEPD a => a -> String Source #

Display in EPD.