Prelude.catch removed in base 4.6; added pragma that should handle this.