optics-core-0.1

Safe HaskellNone
LanguageHaskell2010

Optics.Review

Synopsis

Documentation

data A_Review :: OpticKind #

Tag for a review.

Instances
ReversibleOptic A_Review # 
Instance details

Defined in Optics.Internal.Re

Associated Types

type ReversedOptic A_Review :: OpticKind #

Methods

re :: Optic A_Review [] s t a b -> Optic (ReversedOptic A_Review) [] b a t s #

Is A_LensyReview A_Review # 
Instance details

Defined in Optics.Internal.Optic.Subtyping

Methods

implies :: proxy A_LensyReview A_Review p -> (Constraints A_LensyReview p -> r) -> Constraints A_Review p -> r

Is A_Prism A_Review # 
Instance details

Defined in Optics.Internal.Optic.Subtyping

Methods

implies :: proxy A_Prism A_Review p -> (Constraints A_Prism p -> r) -> Constraints A_Review p -> r

Is An_Iso A_Review # 
Instance details

Defined in Optics.Internal.Optic.Subtyping

Methods

implies :: proxy An_Iso A_Review p -> (Constraints An_Iso p -> r) -> Constraints A_Review p -> r

Is An_Equality A_Review # 
Instance details

Defined in Optics.Internal.Optic.Subtyping

Methods

implies :: proxy An_Equality A_Review p -> (Constraints An_Equality p -> r) -> Constraints A_Review p -> r

type ReversedOptic A_Review # 
Instance details

Defined in Optics.Internal.Re

type Review s t a b = Optic A_Review '[] s t a b #

Type synonym for a type-modifying review.

type Review' b t = Optic' A_Review '[] t b #

Type synonym for a type-preserving review.

toReview :: Is k A_Review => Optic k is s t a b -> Optic A_Review is s t a b #

Explicitly cast an optic to a review.

review :: Is k A_Review => Optic' k is t b -> b -> t #

Apply a review.

unto :: (b -> t) -> Review' b t #

An analogue of to for review.

class ReversibleOptic k where #

Minimal complete definition

re

Associated Types

type ReversedOptic k :: OpticKind #

Methods

re :: Optic k '[] s t a b -> Optic (ReversedOptic k) '[] b a t s #

Reverses optics, turning around Equality into Equality, Iso into Iso, Prism into PrismaticGetter (and back), Lens into LensyReview (and back) and Getter into Review (and back).

Instances
ReversibleOptic A_Review # 
Instance details

Defined in Optics.Internal.Re

Associated Types

type ReversedOptic A_Review :: OpticKind #

Methods

re :: Optic A_Review [] s t a b -> Optic (ReversedOptic A_Review) [] b a t s #

ReversibleOptic A_LensyReview # 
Instance details

Defined in Optics.Internal.Re

Associated Types

type ReversedOptic A_LensyReview :: OpticKind #

Methods

re :: Optic A_LensyReview [] s t a b -> Optic (ReversedOptic A_LensyReview) [] b a t s #

ReversibleOptic A_Getter # 
Instance details

Defined in Optics.Internal.Re

Associated Types

type ReversedOptic A_Getter :: OpticKind #

Methods

re :: Optic A_Getter [] s t a b -> Optic (ReversedOptic A_Getter) [] b a t s #

ReversibleOptic A_PrismaticGetter # 
Instance details

Defined in Optics.Internal.Re

Associated Types

type ReversedOptic A_PrismaticGetter :: OpticKind #

Methods

re :: Optic A_PrismaticGetter [] s t a b -> Optic (ReversedOptic A_PrismaticGetter) [] b a t s #

ReversibleOptic A_Prism # 
Instance details

Defined in Optics.Internal.Re

Associated Types

type ReversedOptic A_Prism :: OpticKind #

Methods

re :: Optic A_Prism [] s t a b -> Optic (ReversedOptic A_Prism) [] b a t s #

ReversibleOptic A_Lens # 
Instance details

Defined in Optics.Internal.Re

Associated Types

type ReversedOptic A_Lens :: OpticKind #

Methods

re :: Optic A_Lens [] s t a b -> Optic (ReversedOptic A_Lens) [] b a t s #

ReversibleOptic An_Iso # 
Instance details

Defined in Optics.Internal.Re

Associated Types

type ReversedOptic An_Iso :: OpticKind #

Methods

re :: Optic An_Iso [] s t a b -> Optic (ReversedOptic An_Iso) [] b a t s #

ReversibleOptic An_Equality # 
Instance details

Defined in Optics.Internal.Re

Associated Types

type ReversedOptic An_Equality :: OpticKind #

Methods

re :: Optic An_Equality [] s t a b -> Optic (ReversedOptic An_Equality) [] b a t s #