Safe Haskell | None |
---|---|
Language | Haskell2010 |
Optic counterparts of MonadReader combinators from the lens library.
|
Documentation
hreader :: (MonadHReader m, HGettable (MHRElements m) s) => (s -> a) -> m a Source #
hasks :: (MonadHReader m, HGettable (MHRElements m) s) => (s -> a) -> m a Source #
hview :: (MonadHReader m, HGettable (MHRElements m) s) => Getting a s a -> m a Source #
hviews :: (MonadHReader m, HGettable (MHRElements m) s) => LensLike' (Const r) s a -> (a -> r) -> m r Source #
hiview :: (MonadHReader m, HGettable (MHRElements m) s) => IndexedGetting i (i, a) s a -> m (i, a) Source #