Safe Haskell | None |
---|---|
Language | Haskell2010 |
Versions of the lens operators for MonadStates instead of MonadState.
Documentation
module Control.Monad.Readers
asks :: MonadReaders r m => (r -> a) -> m a 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 #
ipreview :: MonadReaders s m => IndexedGetting i (First (i, a)) s a -> m (Maybe (i, a)) Source #