GHC.Toolchain.Lens
Description
A very simple Lens implementation
data Lens a b Source #
Constructors
Fields
(%) :: Lens a b -> Lens b c -> Lens a c Source #
over :: Lens a b -> (b -> b) -> a -> a Source #
(%++) :: Lens a [b] -> b -> a -> a Source #
Append b to [b]
b
[b]
Example usage: @ cc & _ccProgram % _prgFlags %++ "-U__i686" @
cc & _ccProgram % _prgFlags %++ "-U__i686"
(&) :: a -> (a -> b) -> b #