June 2021
Intermediate to advanced
664 pages
17h 16m
English
This chapter covers
Programmers want to control everything within their programs. In Haskell, we can do that via type discipline and reasoning about function behavior. Unfortunately, communication with the outer world sets limits to that control as follows:
When reading a file, we can never be sure in advance whether it exists.
Even if it does exist, we have no guarantee its content matches our expectations.
While we are fetching a web page, a network connection may break.
Acquiring a resource (even memory allocation) may fail.
How should we react? When can ...
Read now
Unlock full access