1 2 3 4 5 6
import Data.Char import System.IO -- !!! Open a non-existent file for reading (should fail) main = openFile "nonexistent" ReadMode