Update Main.hs

Update for compiling under GHC 7.6, because of the API change with regard to the defaultErrorHandler.
Merge pull request #1 from woohooyeah/patch-1

Update Main.hs to compile under GHC 7.6.