switched to Control.Exception.catch, compiles with ghc-7.6 now