Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data An_AffineTraversal :: OpticKind
- type AffineTraversal is s t a b = Optic An_AffineTraversal is s t a b
- type AffineTraversal' is s a = Optic' An_AffineTraversal is s a
- toAffineTraversal :: Is k An_AffineTraversal => Optic k is s t a b -> AffineTraversal is s t a b
- atraversal :: (s -> Either t a) -> (s -> b -> t) -> AffineTraversal '[] s t a b
- withAffineTraversal :: Is k An_AffineTraversal => Optic k is s t a b -> ((s -> b -> t) -> (s -> Either t a) -> r) -> r
- module Optics.Optic
Documentation
data An_AffineTraversal :: OpticKind #
Tag for an affine traversal.
Instances
type AffineTraversal is s t a b = Optic An_AffineTraversal is s t a b #
Type synonym for a type-modifying affine traversal.
type AffineTraversal' is s a = Optic' An_AffineTraversal is s a #
Type synonym for a type-preserving affine traversal.
toAffineTraversal :: Is k An_AffineTraversal => Optic k is s t a b -> AffineTraversal is s t a b #
Explicitly cast an optic to an affine traversal.
atraversal :: (s -> Either t a) -> (s -> b -> t) -> AffineTraversal '[] s t a b #
Build an affine traversal from a matcher and an updater.
withAffineTraversal :: Is k An_AffineTraversal => Optic k is s t a b -> ((s -> b -> t) -> (s -> Either t a) -> r) -> r #
module Optics.Optic