bishbosh-0.0.0.4: Plays chess.

Safe HaskellSafe
LanguageHaskell2010

BishBosh.Property.Opposable

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
An interface for data which have the concept of an opposite.
Synopsis

Type-classes

class Opposable a where Source #

An interface which data which have the concept of an opposite, may implement.

Methods

getOpposite :: a -> a Source #

Instances
Opposable LogicalColour Source # 
Instance details

Defined in BishBosh.Attribute.LogicalColour

Opposable Result Source # 
Instance details

Defined in BishBosh.Model.Result

Opposable Direction Source # 
Instance details

Defined in BishBosh.Attribute.Direction

Opposable Piece Source # 
Instance details

Defined in BishBosh.Component.Piece

Opposable GameTerminationReason Source # 
Instance details

Defined in BishBosh.Model.GameTerminationReason

Num distance => Opposable (Vector distance) Source # 
Instance details

Defined in BishBosh.Cartesian.Vector

Methods

getOpposite :: Vector distance -> Vector distance Source #

Opposable (Move x y) Source # 
Instance details

Defined in BishBosh.Component.Move

Methods

getOpposite :: Move x y -> Move x y Source #