[Haskell] Why is getArgs in the IO monad?

Tomasz Zielonka tomasz.zielonka at gmail.com
Mon Jan 17 16:33:12 EST 2005

On Mon, Jan 17, 2005 at 04:23:17PM -0500, Jim Apple wrote:
> See subject. It seems that it would be constant through execution, and 
> so could be just [String].

I like to think that pure functions don't change between executions.
getArgs :: [String] would certainly break that.

Best regards,

More information about the Haskell mailing list