Why this haskell code does not print the error message?

Printable View