1. 4
  1.  

  2. 9

    Just gonna put this out there:

    data Maybe a = Just a | Nothing
    

    (You can write this yourself, no compiler modifications. Other kinds of errors exist that can be avoided and made explicit through the use of datatypes like this. Your mileage may vary, etc.)