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

BishBosh.Property.Reflectable

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
An interface for data which can be transformed by reflection.
Synopsis

Type-classes

class ReflectableOnX a where Source #

An interface which data which can be transformed by reflection about the x-axis, may implement.

Methods

reflectOnX Source #

Arguments

:: a 
-> a

Reflect about the x-axis, i.e. to top to bottom & vice-versa.

Instances

Instances details
ReflectableOnX Direction Source # 
Instance details

Defined in BishBosh.Attribute.Direction

ReflectableOnX Coordinates Source # 
Instance details

Defined in BishBosh.Cartesian.Coordinates

ReflectableOnX Move Source # 
Instance details

Defined in BishBosh.Component.Move

Methods

reflectOnX :: Move -> Move Source #

ReflectableOnX QualifiedMove Source # 
Instance details

Defined in BishBosh.Component.QualifiedMove

ReflectableOnX Turn Source # 
Instance details

Defined in BishBosh.Component.Turn

Methods

reflectOnX :: Turn -> Turn Source #

ReflectableOnX MaybePieceByCoordinates Source # 
Instance details

Defined in BishBosh.State.MaybePieceByCoordinates

ReflectableOnX Board Source # 
Instance details

Defined in BishBosh.State.Board

ReflectableOnX CastleableRooksByLogicalColour Source # 
Instance details

Defined in BishBosh.State.CastleableRooksByLogicalColour

ReflectableOnX Position Source # 
Instance details

Defined in BishBosh.State.Position

ReflectableOnX Game Source #
Instance details

Defined in BishBosh.Model.Game

Methods

reflectOnX :: Game -> Game Source #

ReflectableOnX a => ReflectableOnX [a] Source # 
Instance details

Defined in BishBosh.Property.Reflectable

Methods

reflectOnX :: [a] -> [a] Source #

(Ord position, ReflectableOnX position) => ReflectableOnX (InstancesByPosition position) Source # 
Instance details

Defined in BishBosh.State.InstancesByPosition

ReflectableOnX turn => ReflectableOnX (TurnsByLogicalColour turn) Source # 
Instance details

Defined in BishBosh.State.TurnsByLogicalColour

class ReflectableOnY a where Source #

An interface which data which can be transformed by reflection about the y-axis, may implement.

Methods

reflectOnY Source #

Arguments

:: a 
-> a

Reflect about the y-axis, i.e. left to right & vice-versa.