Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data TwoWay a = TwoWay {}
- bothWays :: a -> TwoWay a
- justTheTerms :: TwoWay (Defns terms types) -> TwoWay terms
- justTheTypes :: TwoWay (Defns terms types) -> TwoWay types
- or :: TwoWay Bool -> Bool
- sequenceDefns :: TwoWay (Defns terms types) -> DefnsF TwoWay terms types
- swap :: TwoWay a -> TwoWay a
- twoWay :: (a -> a -> b) -> TwoWay a -> b
- unzipMap :: Ord k => Map k (TwoWay v) -> TwoWay (Map k v)
- who_ :: EitherWay x -> Lens' (TwoWay a) a
Documentation
Instances
swap :: TwoWay a -> TwoWay a Source #
Swap who's considered Alice and who's considered Bob. Usually nonsense, but sometimes what you need!