Skip to content

Laws hold? MonadFix (Codensity m) #64

@Icelandjack

Description

@Icelandjack

The library mmtl has a MonadFix (Codensity m) instance

-- still need to prove that MonadFix laws hold
instance MonadFix m => MonadFix (Codensity m) where
    mfix :: (a -> Codensity m a) -> Codensity m a
    mfix f = lift (mfix (lowerCodensity . f))

https://hackage.haskell.org/package/mmtl-0.1/docs/Control-Monad-Codensity.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions