HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Moduledeferred-folds-0.9.18.10Haskell2010

DeferredFolds.UnfoldlM

  • 1 type
  • 19 values
valuefoldlM'
  1. :: Monad m
  2. => output -> input -> m output
  3. -> output
  4. -> UnfoldlM m input
  5. -> m output
#

Perform a monadic strict left fold

valuefoldlRunner
  1. :: Monad m
  2. => forall x. (x -> a -> x) -> x -> x
  3. -> UnfoldlM m a
#

Construct from a specification of how to execute a left-fold

valuefoldrRunner
  1. :: Monad m
  2. => forall x. (a -> x -> x) -> x -> x
  3. -> UnfoldlM m a
#

Construct from a specification of how to execute a right-fold

valuehoist
  1. :: forall a1. m a1 -> n a1
  2. -> forall a1. n a1 -> m a1
  3. -> UnfoldlM m a
  4. -> UnfoldlM n a
#

Change the base monad using invariant natural transformations

valuemapM_ :: Monad m => (input -> m ()) -> UnfoldlM m input -> m ()
#

A more efficient implementation of mapM_

newtypenewtype UnfoldlM (m :: Type -> Type) a
#

A monadic variation of DeferredFolds.Unfoldl

Constructors

  • UnfoldlM (forall x. (x -> a -> m x) -> x -> m x)
Instances13MonadTrans, Monad, Functor, Applicative, Foldable, Alternative, …
  • MonadTrans UnfoldlMDefined in deferred-folds-0.9.18.10 · DeferredFolds.Defs.UnfoldlM · orphan
  • Monad m => Monad (UnfoldlM m)Defined in deferred-folds-0.9.18.10 · DeferredFolds.Defs.UnfoldlM · orphan
  • Functor m => Functor (UnfoldlM m)Defined in deferred-folds-0.9.18.10 · DeferredFolds.Defs.UnfoldlM · orphan
  • Monad m => Applicative (UnfoldlM m)Defined in deferred-folds-0.9.18.10 · DeferredFolds.Defs.UnfoldlM · orphan
  • Foldable (UnfoldlM Identity)Defined in deferred-folds-0.9.18.10 · DeferredFolds.Defs.UnfoldlM · orphan
  • Monad m => Alternative (UnfoldlM m)Defined in deferred-folds-0.9.18.10 · DeferredFolds.Defs.UnfoldlM · orphan
  • Monad m => MonadPlus (UnfoldlM m)Defined in deferred-folds-0.9.18.10 · DeferredFolds.Defs.UnfoldlM · orphan
  • IsList (UnfoldlM Identity a)Defined in deferred-folds-0.9.18.10 · DeferredFolds.Defs.UnfoldlM · orphan
  • Eq a => Eq (UnfoldlM Identity a)Defined in deferred-folds-0.9.18.10 · DeferredFolds.Defs.UnfoldlM · orphan
  • Show a => Show (UnfoldlM Identity a)Defined in deferred-folds-0.9.18.10 · DeferredFolds.Defs.UnfoldlM · orphan
  • Monad m => Semigroup (UnfoldlM m a)Defined in deferred-folds-0.9.18.10 · DeferredFolds.Defs.UnfoldlM · orphan
  • Monad m => Monoid (UnfoldlM m a)Defined in deferred-folds-0.9.18.10 · DeferredFolds.Defs.UnfoldlM · orphan
  • type Item (UnfoldlM Identity a) = aDefined in deferred-folds-0.9.18.10 · DeferredFolds.Defs.UnfoldlM · orphan