Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
镜头库中是否有此快捷方式?
\x -> liftM (^. x) get
也许这是一个愚蠢的问题,但感觉就像一个足够基本的结构,应该有一条捷径。
尝试use
use
use :: MonadState s m => Getting a s a -> m a use = gets . view