We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
view
Generalizing view is nice, as it allows you to use view in a MonadAsk context like use in a MonadState context.
MonadAsk
use
MonadState
-- | View the focus of a `Getter`. view :: forall s t a b m. MonadAsk s m => Getter s t a b -> m a view l = ask >>= unwrap (l (Forget id))
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Generalizing
view
is nice, as it allows you to useview
in aMonadAsk
context likeuse
in aMonadState
context.The text was updated successfully, but these errors were encountered: