
15 Nov
2008
15 Nov
'08
5:59 p.m.
Hi all! When working with Applicative, I often find myself defining and using this operator: (<%>) :: (Applicative f) => f (a -> b) -> a -> f b f <%> x = f <*> pure x and always keep wondering whether it is already known by another name. Can't find it in Control.Applicative. Hoogle didn't give me much either. NB: In general, there's a weird obstacle I notice when writing Haskell: the unshakable feeling that whatever I write, there's already a better name for it and a more elegant implementation lying around. It can get downright paralyzing at times *shudder* Have Fun, -- Ariel J. Birnbaum