| Portability | portable | 
|---|---|
| Stability | provisional | 
| Maintainer | Edward Kmett <ekmett@gmail.com> | 
| Safe Haskell | Safe-Infered | 
Data.Either.Lens
Description
Lenses for working with sums
- traverseLeft :: Traversal (Either a c) (Either b c) a b
- traverseRight :: Traversal (Either c a) (Either c b) a b
Documentation
traverseLeft :: Traversal (Either a c) (Either b c) a bSource
A traversal for tweaking the left-hand value of an Either:
traverseLeft ::Applicativef => (a -> f b) ->Eithera c -> f (Eitherb c)
traverseRight :: Traversal (Either c a) (Either c b) a bSource
traverse the right-hand value of an Either:
traverseRight=traverse
Unfortunately the instance for
 Traversable (Either c)traverse
traverseRight ::Applicativef => (a -> f b) ->Eitherc a -> f (Eitherc a)