Proposal: add Functor instance to Control.Exception.Handler

18 Mar
2012
18 Mar
'12
5:30 p.m.
A Functor instance for Handler could be useful: e.g. foo :: IO (Maybe a) handlers :: [Handler ()] foo `catches` map (Nothing <$) handlers Proposed instance definition: instance Functor Handler where fmap f (Handler h) = Handler (fmap f . h) Deadline: 2 weeks

3 Jul
3 Jul
7:22 p.m.
On 3/19/2012 5:13 AM, Bas van Dijk wrote:
On 18 March 2012 18:30, Patrick Palka
wrote: Proposed instance definition:
instance Functor Handler where fmap f (Handler h) = Handler (fmap f . h) Nice idea. +1
Bas
This proposal is over three months old, and no one has raised any objections. I'm going to go ahead and create a ticket on the GHC Trac to have this included.
4751
Age (days ago)
4858
Last active (days ago)
2 comments
2 participants
participants (2)
-
Bas van Dijk
-
Patrick Palka