Yes, that is a problem. But consider my PS in original mail, I have no idea what exception should I catch. Where could I get that information?
On Thu, Jan 12, 2012 at 2:49 PM, Ivan Lazar Miljenovic <ivan.miljeno...@gmail.com> wrote: > On 12 January 2012 17:34, Gregory Crosswhite <gcrosswh...@gmail.com> wrote: >> On 01/12/12 13:03, Magicloud Magiclouds wrote: >>> Hi, >>> With Prelude.catch, I could write "catch () $ \_ -> return Nothing". >>> But with Control.Exception.catch, I must specify a type for the "_". >>> What should I do? >> >> Use SomeException for the type, as it is the base of the exception >> hierarchy. > > But it is usually recommended that you *don't* do this, as it even > captures Ctrl-c invocations: > http://www.haskell.org/ghc/docs/latest/html/libraries/base/Control-Exception.html#g:4 > > -- > Ivan Lazar Miljenovic > ivan.miljeno...@gmail.com > IvanMiljenovic.wordpress.com > > _______________________________________________ > Haskell-Cafe mailing list > Haskell-Cafe@haskell.org > http://www.haskell.org/mailman/listinfo/haskell-cafe -- 竹密岂妨流水过 山高哪阻野云飞 _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe