4 ms·
Lazyness in Haskell can never change I/O (maybe except performance) unless you use unsafePerformIO, right? Also, there's a link to a page about laziness on the
by theemathas 7y ago
Lazyness in Haskell can never change I/O (maybe except performance) unless you use unsafePerformIO, right?
Also, there's a link to a page about laziness on the left.
- kreetx 7y agoI guess it's explained elsewhere here aswell, but the "lazy IO" discussed is pretty much a bug: you read a file to String, but this String is loaded from the lazily while you consume it. But the problem is: you already get the String thinking all is well, but if something happens to the file handle you get a runtime error. This shouldn't happen with pure values.