Safe Haskell | None |
---|---|
Language | Haskell2010 |
Defines some infix operators for optics operations.
These are not exported by default from Optics
.
They have to be imported separately.
Synopsis
- (&) :: a -> (a -> b) -> b
- (<&>) :: Functor f => f a -> (a -> b) -> f b
- (^.) :: ViewableOptic k a => s -> Optic' k is s a -> ViewResult k a
- (^..) :: Is k A_Fold => s -> Optic' k is s a -> [a]
- (^?) :: Is k A_Fold => s -> Optic' k is s a -> Maybe a
- (#) :: Is k A_Review => b -> Optic' k is t b -> t
- (%~) :: Is k A_Setter => Optic k is s t a b -> (a -> b) -> s -> t
- (.~) :: Is k A_Setter => Optic k is s t a b -> b -> s -> t
Documentation
(^.) :: ViewableOptic k a => s -> Optic' k is s a -> ViewResult k a infixl 8 #
Flipped infix version of view
.