| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Control.Interchangeable
- class Interchangeable a b where
Documentation
class Interchangeable a b where Source #
Minimal definition is (interchange, interchange') and (applyI,
applyI') or (modifyI, modifyI').
Minimal complete definition
Methods
interchange :: a -> b Source #
Interchange a with b
interchange' :: b -> a Source #
Interchange b with a
applyI :: a -> b -> b Source #
Append a to b
applyI' :: b -> a -> a Source #
Append b to a
modifyI :: a -> (b -> b) -> a Source #
Modify a with an operation to b
modifyI' :: b -> (a -> a) -> b Source #
Modify a with an operation to b
Instances
| Interchangeable a b => Interchangeable b a Source # | |
| Ord a => Interchangeable [a] (Set a) Source # | |
| Ord k => Interchangeable [(k, a)] (Map k a) Source # | |