6 ms·
You mean that no Haskell programs can do I/O? Given that I've written Haskell programs that do I/O, I'd guess you're wrong.
by ricky_clarkson 18y ago
You mean that no Haskell programs can do I/O? Given that I've written Haskell programs that do I/O, I'd guess you're wrong.
- smanek 18y agoHe never said that. He just said the "Haskell-ish beauty goes out the window," which is arguably true. In my (limited) experience, Haskell code to do I/O (i.e., Monads) isn't a pretty or elegant as purely functional Haskell code. A lot of Haskell's useful tricks (i.e., its beauty like the ridiculously strong type system or lazy evaluation) don't work on code with side effects.
- crabapple 18y agoHaskell code to do I/O (i.e., Monads) isn't a pretty or elegant as purely functional Haskell code are you using "do" notation? ITS JUST SUGAR. you can use >>=, >>, return etc directly and voila, Monads are as functional as the rest of haskell