| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.Strict.Lens
Contents
Synopsis
- _Left :: Prism (Either a c) (Either b c) a b
- _Right :: Prism (Either c a) (Either c b) a b
- _Just :: Prism (Maybe a) (Maybe b) a b
- _Nothing :: Prism' (Maybe a) ()
- here :: Traversal (These a c) (These b c) a b
- there :: Traversal (These c a) (These c b) a b
- _This :: Prism' (These a b) a
- _That :: Prism' (These a b) b
- _These :: Prism' (These a b) (a, b)
Tuple
Maybe
These
here :: Traversal (These a c) (These b c) a b Source #
A Traversal of the first half of a These, suitable for use with Control.Lens.
>>>over here show (That 1)That 1
>>>over here show (These 'a' 2)These "'a'" 2
Orphan instances
| Swapped Pair Source # | |
| Swapped These Source # | |
| Swapped Either Source # | |
| Strict (Maybe a) (Maybe a) Source # | |
| Each (Maybe a) (Maybe b) a b Source # | |
| Strict (Either a b) (Either a b) Source # | |
| Strict (a, b) (Pair a b) Source # | |
| (a ~ a', b ~ b') => Each (Pair a a') (Pair b b') a b Source # | |
| (a ~ a', b ~ b') => Each (These a a') (These b b') a b Source # | |
| (a ~ a', b ~ b') => Each (Either a a') (Either b b') a b Source # | |
| Field1 (Pair a b) (Pair a' b) a a' Source # | |
| Field2 (Pair a b) (Pair a b') b b' Source # | |