HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

ModuleAgda-2.7.0.1Haskell2010

Agda.Utils.ListT

ListT done right, see https://www.haskell.org/haskellwiki/ListT_done_right_alternative

There is also the list-t package on hackage (Nikita Volkov) but it again depends on other packages we do not use yet, so we rather implement the few bits we need afresh.

  • 1 type
  • 17 values
  • PackageAgda-2.7.0.1
  • Exports18
  • LanguageHaskell2010
  • LicenceMIT
  • SourceListT.hs
newtypenewtype ListT (m :: Type -> Type) a
#

Lazy monadic computation of a list of results.

Constructors

Instances26MonadTrans, MonadReader, MonadState, MonadFresh, Monad, Functor, …

List operations

9 declarations
valuefoldListT :: Monad m => (a -> m b -> m b) -> m b -> ListT m a -> m b
#

Folding a lazy list, effects left-to-right.

valueanyListT :: Monad m => ListT m a -> (a -> m Bool) -> m Bool
#

Lazy monadic disjunction of lazy monadic list, effects left-to-right

valueallListT :: Monad m => ListT m a -> (a -> m Bool) -> m Bool
#

Lazy monadic conjunction of lazy monadic list, effects left-to-right

Monadic list operations.

6 declarations