Looking at this ZeroMQ HelloWorldClient.hs code snippet:
forM_ [1..10] $ \i -> do
liftIO . putStrLn $ "Sending Hello " ++ show i ++ "…"
send requester [] "Hello"
_ <- receive requester
liftIO . putStrLn $ "Received World " ++ show i
Is there any reason why _ <- receive requester
wouldn't be written as receive requester
?
Also, in general, is there any reason to use _ <- f
(where f : Monad m => m a
) instead of f
?