Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- type Lens src tgt = src |-> Store tgt
- type (:-.) src tgt = Lens src tgt
- (|>) :: Lens src btw -> Lens btw tgt -> Lens src tgt
- view :: Lens src tgt -> src -> tgt
- set :: Lens src tgt -> tgt -> src -> src
- over :: Lens src tgt -> (tgt -> tgt) -> src -> src
- zoom :: Stateful bg t => Lens bg ls -> State ls a -> t a
- (^.) :: Lens src tgt -> src -> tgt
- (.~) :: Lens src tgt -> tgt -> src -> src
- (%~) :: Lens src tgt -> (tgt -> tgt) -> src -> src