Update Main.hs

Update for compiling under GHC 7.6, because of the API change with regard to the defaultErrorHandler.