|
|
|
|
|
by AnimalMuppet
2559 days ago
|
|
The file isn't going to be used after it's closed. The string from the file is going to be used after the file is closed. But with lazy IO, you don't have (all of) the string from the file yet, even though you've "read" it. That is, the abstractions don't do what non-Haskell abstractions would lead you to expect. |
|