| Copyright | (c) Andy Gill 2001 (c) Oregon Graduate Institute of Science and Technology 2001 |
|---|---|
| License | BSD-style (see the file LICENSE) |
| Maintainer | R.Paterson@city.ac.uk |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | Safe |
| Language | Haskell98 |
Control.Monad.Trans.List
Description
Deprecated: This transformer is invalid on most monads
The ListT monad transformer, adding backtracking to a given monad, which must be commutative.
The ListT monad transformer
Parameterizable list monad, with an inner monad.
Note: this does not yield a monad unless the argument monad is commutative.
Instances
Instance details
Defined in Control.Monad.Trans.List
Methods
fold :: Monoid m => ListT f m -> m #
foldMap :: Monoid m => (a -> m) -> ListT f a -> m #
foldr :: (a -> b -> b) -> b -> ListT f a -> b #
foldr' :: (a -> b -> b) -> b -> ListT f a -> b #
foldl :: (b -> a -> b) -> b -> ListT f a -> b #
foldl' :: (b -> a -> b) -> b -> ListT f a -> b #
foldr1 :: (a -> a -> a) -> ListT f a -> a #
foldl1 :: (a -> a -> a) -> ListT f a -> a #
elem :: Eq a => a -> ListT f a -> Bool #
maximum :: Ord a => ListT f a -> a #
minimum :: Ord a => ListT f a -> a #
Instance details
Defined in Control.Monad.Trans.List
Instance details
Defined in Control.Monad.Trans.List
Instance details
Defined in Control.Monad.Trans.List
Instance details
Defined in Control.Monad.Trans.List