[Haskell-cafe] "Rebox Package" or "To Hackage or not to Hackage"

David Menendez dave at zednenem.com
Tue Dec 8 18:34:16 EST 2009


On Tue, Dec 8, 2009 at 4:25 PM, Vitaliy Akimov <vitaliy.akimov at gmail.com> wrote:
> Hi John,
>
> I don't know if this is useful for you, but these are instances of
> Cofunctor's comap. For example if we use TypeCompose package we have:
>
> rebox f = unFlip . cofmap f . Flip

Alternately, rebox = flip (.)

-- 
Dave Menendez <dave at zednenem.com>
<http://www.eyrie.org/~zednenem/>


More information about the Haskell-Cafe mailing list