lens-5.0.1: Lenses, Folds and Traversals
Copyright (C) 2012-2016 Edward Kmett
License BSD-style (see the file LICENSE)
Maintainer Edward Kmett <ekmett@gmail.com>
Stability experimental
Portability non-portable
Safe Haskell Trustworthy
Language Haskell2010

Control.Lens.Internal.Zoom

Description

Synopsis

Zoom

newtype FocusingOn f k s a Source #

Used by Zoom to zoom into MaybeT or ListT .

Constructors

FocusingOn

Fields

Instances

Instances details
Functor (k (f s)) => Functor ( FocusingOn f k s) Source #
Instance details

Defined in Control.Lens.Internal.Zoom

Methods

fmap :: (a -> b) -> FocusingOn f k s a -> FocusingOn f k s b Source #

(<$) :: a -> FocusingOn f k s b -> FocusingOn f k s a Source #

Applicative (k (f s)) => Applicative ( FocusingOn f k s) Source #
Instance details

Defined in Control.Lens.Internal.Zoom

Apply (k (f s)) => Apply ( FocusingOn f k s) Source #
Instance details

Defined in Control.Lens.Internal.Zoom

newtype FocusingFree f m k s a Source #

Used by Zoom to zoom into FreeT

Constructors

FocusingFree

Fields

Instances

Instances details
Functor (k ( Freed f m s)) => Functor ( FocusingFree f m k s) Source #
Instance details

Defined in Control.Lens.Internal.Zoom

Methods

fmap :: (a -> b) -> FocusingFree f m k s a -> FocusingFree f m k s b Source #

(<$) :: a -> FocusingFree f m k s b -> FocusingFree f m k s a Source #

Applicative (k ( Freed f m s)) => Applicative ( FocusingFree f m k s) Source #
Instance details

Defined in Control.Lens.Internal.Zoom

Apply (k ( Freed f m s)) => Apply ( FocusingFree f m k s) Source #
Instance details

Defined in Control.Lens.Internal.Zoom

Methods

(<.>) :: FocusingFree f m k s (a -> b) -> FocusingFree f m k s a -> FocusingFree f m k s b Source #

(.>) :: FocusingFree f m k s a -> FocusingFree f m k s b -> FocusingFree f m k s b Source #

(<.) :: FocusingFree f m k s a -> FocusingFree f m k s b -> FocusingFree f m k s a Source #

liftF2 :: (a -> b -> c) -> FocusingFree f m k s a -> FocusingFree f m k s b -> FocusingFree f m k s c Source #

newtype Freed f m a Source #

Make a Monoid out of FreeF for result collection.

Constructors

Freed

Fields

Magnify

newtype Effect m r a Source #

Wrap a monadic effect with a phantom type argument.

Constructors

Effect

Fields

Instances

Instances details
Functor ( Effect m r) Source #
Instance details

Defined in Control.Lens.Internal.Zoom

Methods

fmap :: (a -> b) -> Effect m r a -> Effect m r b Source #

(<$) :: a -> Effect m r b -> Effect m r a Source #

( Monad m, Monoid r) => Applicative ( Effect m r) Source #
Instance details

Defined in Control.Lens.Internal.Zoom

Contravariant ( Effect m r) Source #
Instance details

Defined in Control.Lens.Internal.Zoom

Methods

contramap :: (a -> b) -> Effect m r b -> Effect m r a Source #

(>$) :: b -> Effect m r b -> Effect m r a Source #

( Apply m, Semigroup r) => Apply ( Effect m r) Source #
Instance details

Defined in Control.Lens.Internal.Zoom

Methods

(<.>) :: Effect m r (a -> b) -> Effect m r a -> Effect m r b Source #

(.>) :: Effect m r a -> Effect m r b -> Effect m r b Source #

(<.) :: Effect m r a -> Effect m r b -> Effect m r a Source #

liftF2 :: (a -> b -> c) -> Effect m r a -> Effect m r b -> Effect m r c Source #

( Monad m, Semigroup r) => Semigroup ( Effect m r a) Source #
Instance details

Defined in Control.Lens.Internal.Zoom

( Monad m, Monoid r) => Monoid ( Effect m r a) Source #
Instance details

Defined in Control.Lens.Internal.Zoom

newtype EffectRWS w st m s a Source #

Wrap a monadic effect with a phantom type argument. Used when magnifying RWST .

Constructors

EffectRWS

Fields

Instances

Instances details
Functor ( EffectRWS w st m s) Source #
Instance details

Defined in Control.Lens.Internal.Zoom

Methods

fmap :: (a -> b) -> EffectRWS w st m s a -> EffectRWS w st m s b Source #

(<$) :: a -> EffectRWS w st m s b -> EffectRWS w st m s a Source #

( Monoid s, Monoid w, Monad m) => Applicative ( EffectRWS w st m s) Source #
Instance details

Defined in Control.Lens.Internal.Zoom

Methods

pure :: a -> EffectRWS w st m s a Source #

(<*>) :: EffectRWS w st m s (a -> b) -> EffectRWS w st m s a -> EffectRWS w st m s b Source #

liftA2 :: (a -> b -> c) -> EffectRWS w st m s a -> EffectRWS w st m s b -> EffectRWS w st m s c Source #

(*>) :: EffectRWS w st m s a -> EffectRWS w st m s b -> EffectRWS w st m s b Source #

(<*) :: EffectRWS w st m s a -> EffectRWS w st m s b -> EffectRWS w st m s a Source #

Contravariant ( EffectRWS w st m s) Source #
Instance details

Defined in Control.Lens.Internal.Zoom

Methods

contramap :: (a -> b) -> EffectRWS w st m s b -> EffectRWS w st m s a Source #

(>$) :: b -> EffectRWS w st m s b -> EffectRWS w st m s a Source #

( Semigroup s, Semigroup w, Bind m) => Apply ( EffectRWS w st m s) Source #
Instance details

Defined in Control.Lens.Internal.Zoom

Methods

(<.>) :: EffectRWS w st m s (a -> b) -> EffectRWS w st m s a -> EffectRWS w st m s b Source #

(.>) :: EffectRWS w st m s a -> EffectRWS w st m s b -> EffectRWS w st m s b Source #

(<.) :: EffectRWS w st m s a -> EffectRWS w st m s b -> EffectRWS w st m s a Source #

liftF2 :: (a -> b -> c) -> EffectRWS w st m s a -> EffectRWS w st m s b -> EffectRWS w st m s c Source #