Update Main.hs

Further changes to allow compilation under GHC 7.6