Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
newtype Codensity (m :: Type -> Type) a Source #
Codensity | |
|
Instances
MonadTrans Codensity Source # | |
MonadIO m => MonadFix (Codensity m) Source # | |
MonadIO m => MonadIO (Codensity m) Source # | |
Applicative (Codensity f) Source # | |
Defined in GHC.Utils.Monad.Codensity pure :: a -> Codensity f a Source # (<*>) :: Codensity f (a -> b) -> Codensity f a -> Codensity f b Source # liftA2 :: (a -> b -> c) -> Codensity f a -> Codensity f b -> Codensity f c Source # (*>) :: Codensity f a -> Codensity f b -> Codensity f b Source # (<*) :: Codensity f a -> Codensity f b -> Codensity f a Source # | |
Functor (Codensity k) Source # | |
Monad (Codensity f) Source # | |
toCodensity :: Monad m => m a -> Codensity m a Source #
fromCodensity :: Monad m => Codensity m a -> m a Source #