Proposal: add Functor instance to Control.Exception.Handler
19 Mar
2012
19 Mar
'12
3:30 a.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
4 Jul
4 Jul
5:22 a.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.
5062
Age (days ago)
5169
Last active (days ago)
2 comments
2 participants
participants (2)
-
Bas van Dijk -
Patrick Palka