mtl-unleashed-0.6.1: MTL classes without the functional dependency

Safe HaskellNone
LanguageHaskell2010

Control.Lens.Readers

Description

Versions of the lens operators for MonadStates instead of MonadState.

Documentation

asks :: MonadReaders r m => (r -> a) -> m a Source #

views :: MonadReaders s m => LensLike' (Const r) s a -> (a -> r) -> m r Source #

iview :: MonadReaders s m => IndexedGetting i (i, a) s a -> m (i, a) Source #

iviews :: MonadReaders s m => IndexedGetting i r s a -> (i -> a -> r) -> m r Source #

review :: MonadReaders b m => AReview t b -> m t Source #

view :: MonadReaders r m => Getting a r a -> m a Source #

reviews :: MonadReaders b m => AReview t b -> (t -> r) -> m r Source #

preview :: MonadReaders s m => Getting (First a) s a -> m (Maybe a) Source #

ipreview :: MonadReaders s m => IndexedGetting i (First (i, a)) s a -> m (Maybe (i, a)) Source #

previews :: MonadReaders s m => Getting (First r) s a -> (a -> r) -> m (Maybe r) Source #