| Maintainer | hapytexeu+gh@gmail.com |
|---|---|
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Dep.Class.Opposite
Description
This module defines a typeclass Opposite that specifies that each value of
a specific type has an opposite value of the same type.
A typeclass to determine the opposite value.
class Opposite a where Source #
A typeclass where the values of its members have an opposite element from the same type.
Minimal complete definition
Nothing
Methods
Arguments
| :: a | The given item to determine the opposite from. |
| -> a | The opposite of the given value. |
A function that determines the opposite value.
Instances
| Opposite Bool Source # | |
| Opposite ThreeValue Source # | |
Defined in Dep.Data.ThreeValue Methods opposite :: ThreeValue -> ThreeValue Source # | |
| Opposite a => Opposite [a] Source # | |
Defined in Dep.Class.Opposite | |
| Opposite a => Opposite (Maybe a) Source # | |
| Opposite a => Opposite (Three a) Source # | |
| Opposite b => Opposite (a -> b) Source # | |
Defined in Dep.Class.Opposite | |