3 ms·
Conventions also help. For instance, the lazy readTVar, modifyTVar, etc. functions have strict analogs called readTVar' and so on. mapM, foldM, replicateM, an
by mrkgnao 10y ago
Conventions also help.
For instance, the lazy readTVar, modifyTVar, etc. functions have strict analogs called readTVar' and so on.
mapM, foldM, replicateM, and traverse return a monadic value, while mapM_, foldM_, replicateM_, traverse_ and friends discard the return value (giving an m () instead of an m a).