aws-arn-0.2.0.0: Types and optics for manipulating Amazon Resource Names (ARNs)
Copyright(C) 2020-2022 Bellroy Pty Ltd
LicenseBSD-3-Clause
MaintainerBellroy Tech Team <haskell@bellroy.com>
Stabilityexperimental
Safe HaskellSafe-Inferred
LanguageHaskell2010

Network.AWS.ARN.Internal.Lens

Description

Reimplement a few lens types and combinators to keep the dependency footprint down.

Documentation

type Lens' s a = forall f. Functor f => (a -> f a) -> s -> f s Source #

type Setter s a = (a -> Identity a) -> s -> Identity s Source #

set :: Setter s a -> a -> s -> s Source #

over :: Setter s a -> (a -> a) -> s -> s Source #

type Prism' s a = forall p f. (Choice p, Applicative f) => p a (f a) -> p s (f s) Source #

prism' :: forall s a. (a -> s) -> (s -> Maybe a) -> Prism' s a Source #

preview :: Prism' s a -> s -> Maybe a Source #

review :: Prism' s a -> a -> s Source #

(^?) :: s -> Prism' s a -> Maybe a infixl 8 Source #