Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
BishBosh.Property.Opposable
Contents
Description
AUTHOR
- Dr. Alistair Ward
DESCRIPTION
- An interface for data which have the concept of an opposite.
Synopsis
- class Opposable a where
- getOpposite :: a -> a
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 # | |
Defined in BishBosh.Attribute.LogicalColour Methods | |
Opposable Result Source # | |
Defined in BishBosh.Model.Result Methods getOpposite :: Result -> Result Source # | |
Opposable Direction Source # | |
Defined in BishBosh.Attribute.Direction Methods getOpposite :: Direction -> Direction Source # | |
Opposable Piece Source # | |
Defined in BishBosh.Component.Piece Methods getOpposite :: Piece -> Piece Source # | |
Opposable GameTerminationReason Source # | |
Defined in BishBosh.Model.GameTerminationReason Methods getOpposite :: GameTerminationReason -> GameTerminationReason Source # | |
Num distance => Opposable (Vector distance) Source # | |
Defined in BishBosh.Cartesian.Vector Methods getOpposite :: Vector distance -> Vector distance Source # | |
Opposable (Move x y) Source # | |
Defined in BishBosh.Component.Move Methods getOpposite :: Move x y -> Move x y Source # |