| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Box.Codensity
Contents
Description
Extra Codensity operators.
Documentation
close :: Codensity m (m r) -> m r Source #
close a continuation
>>>close $ glue showStdout <$> qList [1..3]1 2 3
process :: forall a m r. (a -> m r) -> Codensity m a -> m r Source #
fmap then close over a Codensity
>>>process (glue showStdout) (qList [1..3])1 2 3
(<$|>) :: forall a m r. (a -> m r) -> Codensity m a -> m r infixr 3 Source #
fmap then close over a Codensity
>>>glue showStdout <$|> qList [1..3]1 2 3
(<*|>) :: Codensity m (a -> m r) -> Codensity m a -> m r infixr 3 Source #
apply to a continuation and close.
>>>glue <$> (pure showStdout) <*|> qList [1..3]1 2 3
module Control.Monad.Codensity