[Haskell-beginners] general structuring of "foreach" logic in IO
John M. Dlugosz
ngnr63q02 at sneakemail.com
Mon Apr 14 18:37:04 UTC 2014
On 4/14/2014 10:47 AM, Brandon Allbery wrote:
>
>
> But it is the *compiler's* problem. "Constant" means "known at compile time" to the compiler.
>
Pure means pure at run-time over the life of the executable. Just because the compiler
doesn't know what it is (had it cared to evaluate it at compile time) doesn't mean it's
not pure.
> Although I wonder if you'd be happier with getArgs >>= mapM_ (do ...).
That's what I ended up with when I stopped fiddling with that particular line.
More information about the Beginners
mailing list