
Tomasz Zielonka wrote:
In my experience, the amount of IO code in an average Haskell program is from 1% to 20%, even in applications which have to do a fair amount of interaction with the outside world (networking, CGI, system utils).
Ok, I can see that. Thanks.
Haskell's IO is not just a mimicry of traditional imperative languages, it's an EDSL (embedded domain specific language) for doing IO. Because it's embedded it benefits from all the other features of Haskell, like first-class functions, higher-order functions, lexical closures, pattern matching, etc, etc.
I guess this will make more sense to me as I learn more about the language. I'm quite new at this.
If you mean that Haskell is rarely applicable, I disagree.
Well... the purpose of asking here is so knowledgeable people can correct my errors. :-) Thank you for the info. I'm learning. Cheers, Daniel.