Right fold over a stream. This will be lazy if the underlying monad is.
runT = foldrT (:) []:: a typeCtrl KGHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12
Modulemachines-0.7.4Haskell2010
Right fold over a stream. This will be lazy if the underlying monad is.
runT = foldrT (:) []Strict left fold over a stream.
Strict fold over a stream. Items are accumulated on the right:
... ((f o1 <> f o2) <> f o3) ...Where this is expensive, use the dual monoid instead.
Strict fold over a monoid stream. Items are accumulated on the right:
... ((o1 <> o2) <> o3) ...Where this is expensive, use the dual monoid instead.
foldT = foldMapT idRun a machine with no input until it yields for the first time,
then stop it. This is intended primarily for use with accumulating
machines, such as the ones produced by fold or fold1
runT1 m = getFirst $ foldMapT (First . Just) (m ~> taking 1)Stop feeding input into model and extract an answer
Stop feeding input into model, taking only the effects.