#haskell - Sun 25 Mar 2007 between 21:19 and 21:29

NY Lost Funds



Pseudonym?hoogle (Monad m) => (a -> m b) -> [m a] -> m ()
lambdabotNo matches, try a more general search
PseudonymErm.
Ah, sequence_ does the trick.
Or even better, mapM_
t0massequence_ :: (Monad m) => [m a] -> m ()
ok
mapM_ :: (Monad m) => (a -> m b) -> [a] -> m ()
Pseudonymimport "whatever" >>= mapM_ putStrLn
Should do it.
sequence_ would also work.
t0masand that shows that it groups correctly :D
PseudonymYou could also just do this:
import "whatever" >>= putStrLn
Though it wouldn't be prettier.
Err.
import "whatever" >>= print
?t print
lambdabotMaybe 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
ventonegrot0mas, http://blogs.nubgames.com/code/?p=22
Pseudonym?type print
lambdabotTitle: Nub Games Haskell IO for Imperative Programmers
forall a. (Show a) => a -> IO ()
PseudonymYes.
t0masventonegro: I've read that :)
but only this morning
so it's all still a little new to me :)
ventonegrot0mas, http://syntaxfree.wordpress.com/2006/12/12/do-notation-considered-harmful/
lambdabotTitle: Do-notation considered harmful Data.Syntaxfree, http://tinyurl.com/tlmrl
ventonegrokeep reading :-)
PseudonymI automatically tune out anything that ends with "considered harmful".
t0mashehe
PseudonymYou just know it's going to be more noise than signal.
jcreigh"Considered harmful" considered harmful.
PseudonymAll due respect to syntaxfree.
jcreigh...and I think somebody actually wrote an essay along those lines.
PseudonymProbably.
thoratProvably
shoffstawhen running yi, I get the error message:
error: Could not run YiConfig.yiMain :: Yi.Yi.EditorM ()

Page: 3 10 17 24 31 38 45 52 59 66 73 80 87 94 101 108 

IrcArchive

NY Lost Funds