Replace Prelude.catch with Control.Exception.catch