What is the general term for a functor with a structure resembling QuickCheck's promote
function, i.e., a function of the form:
promote :: (a -> f b) -> f (a -> b)
(this is the inverse of flip $ fmap (flip ($)) :: f (a -> b) -> (a -> f b)
). Are there even any functors with such an operation, other than (->) r
and Id
? (I'm sure there must be). Googling 'quickcheck promote' only turned up the QuickCheck documentation, which doesn't give promote
in any more general context AFAICS; searching SO for 'quickcheck promote' produces no results.