Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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.
getOpposite :: a -> a Source #
Instances
Opposable Ordering Source # | |
Defined in BishBosh.Property.Opposable getOpposite :: Ordering -> Ordering Source # | |
Opposable PhysicalColour Source # | |
Defined in BishBosh.Attribute.PhysicalColour | |
Opposable LogicalColour Source # | |
Defined in BishBosh.Attribute.LogicalColour | |
Opposable Result Source # | |
Defined in BishBosh.Rule.Result getOpposite :: Result -> Result Source # | |
Opposable Direction Source # | |
Defined in BishBosh.Attribute.Direction getOpposite :: Direction -> Direction Source # | |
Opposable Vector Source # | |
Defined in BishBosh.Cartesian.Vector getOpposite :: Vector -> Vector Source # | |
Opposable Move Source # | |
Defined in BishBosh.Component.Move getOpposite :: Move -> Move Source # | |
Opposable GameTerminationReason Source # | |
Opposable Piece Source # | |
Defined in BishBosh.Component.Piece getOpposite :: Piece -> Piece Source # |