|Pseudonym||?hoogle (Monad m) => (a -> m b) -> [m a] -> m ()|
|lambdabot||No matches, try a more general search|
Ah, sequence_ does the trick.
Or even better, mapM_
|t0mas||sequence_ :: (Monad m) => [m a] -> m ()|
mapM_ :: (Monad m) => (a -> m b) -> [a] -> m ()
|Pseudonym||import "whatever" >>= mapM_ putStrLn|
Should do it.
sequence_ would also work.
|t0mas||and that shows that it groups correctly :D|
|Pseudonym||You could also just do this:|
import "whatever" >>= putStrLn
Though it wouldn't be prettier.
import "whatever" >>= print
|lambdabot||Maybe you meant: tell temp time tiny-url todo todo-add todo-delete topic-cons topic-init topic-null topic-snoc topic-tail topic-tell type . ft v|
|lambdabot||Title: Nub Games Haskell IO for Imperative Programmers|
forall a. (Show a) => a -> IO ()
|t0mas||ventonegro: I've read that :)|
but only this morning
so it's all still a little new to me :)
|lambdabot||Title: Do-notation considered harmful Data.Syntaxfree, http://tinyurl.com/tlmrl|
|ventonegro||keep reading :-)|
|Pseudonym||I automatically tune out anything that ends with "considered harmful".|
|Pseudonym||You just know it's going to be more noise than signal.|
|jcreigh||"Considered harmful" considered harmful.|
|Pseudonym||All due respect to syntaxfree.|
|jcreigh||...and I think somebody actually wrote an essay along those lines.|
|shoffsta||when running yi, I get the error message:|
error: Could not run YiConfig.yiMain :: Yi.Yi.EditorM ()