Mar*_*lli 5 haskell either hoogle
我正在跟踪大约两年前录制的视频。演讲者输入Either a b -> IO b了公共Hoogle搜索输入,结果包含(其中包括):
either :: (a -> c) -> (b -> c) -> Either a b -> c
Run Code Online (Sandbox Code Playgroud)
如果我今天尝试一下,找不到此结果,这是一个遗憾。找到类似的结果,例如
fromEither :: (Exception e, MonadIO m) => Either e a -> m a
Run Code Online (Sandbox Code Playgroud)
但它们不易使用。
如何解释呢?Hoogle搜索算法变得更严格了吗?有没有改变?