fresnel-0.1.0.1: high-powered optics in a small package
Safe HaskellNone
LanguageHaskell2010

Fresnel.Getter

Synopsis

Getters

type Getter s a = forall (p :: Type -> Type -> Type). IsGetter p => Optic' p s a Source #

class (IsLens p, Bicontravariant p, Cochoice p) => IsGetter (p :: Type -> Type -> Type) Source #

Instances

Instances details
(Contravariant f, Traversable f) => IsGetter (OptionalStar f) Source # 
Instance details

Defined in Fresnel.Getter.Internal

(Contravariant f, Traversable f) => IsGetter (Star1 f) Source # 
Instance details

Defined in Fresnel.Getter.Internal

IsGetter (Forget r :: Type -> Type -> Type) Source # 
Instance details

Defined in Fresnel.Getter.Internal

(Contravariant f, Traversable f) => IsGetter (Star f) Source # 
Instance details

Defined in Fresnel.Getter.Internal

Construction

to :: (s -> a) -> Getter s a Source #

getting :: (Profunctor p, Bicontravariant p) => Optic p s t a b -> Optic' p s a Source #

Elimination

views :: Getter s a -> (a -> r) -> s -> r Source #

view :: Getter s a -> s -> a Source #

(^.) :: s -> Getter s a -> a infixl 8 Source #